mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 22:20:37 +07:00
mwifiex: missing error code on allocation failure
We accidentally return success instead of -ENOMEM. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
04a74a9f8a
commit
e0bdef0f75
@ -1017,8 +1017,10 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter,
|
||||
|
||||
/* Allocate memory for receive */
|
||||
recv_buff = kzalloc(FW_DNLD_RX_BUF_SIZE, GFP_KERNEL);
|
||||
if (!recv_buff)
|
||||
if (!recv_buff) {
|
||||
ret = -ENOMEM;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
do {
|
||||
/* Send pseudo data to check winner status first */
|
||||
|
Loading…
Reference in New Issue
Block a user