Re: [PATCH] rsi: fix error return code of rsi_load_9116_firmware()

From: Kalle Valo
Date: Sun Apr 18 2021 - 01:56:33 EST


Jia-Ju Bai <baijiaju1990@xxxxxxxxx> wrote:

> When kmemdup() returns NULL to ta_firmware, no error return code of
> rsi_load_9116_firmware() is assigned.
> To fix this bug, status is assigned with -ENOMEM in this case.
>
> Reported-by: TOTE Robot <oslab@xxxxxxxxxxxxxxx>
> Signed-off-by: Jia-Ju Bai <baijiaju1990@xxxxxxxxx>

Someone needs to review this.

Patch set to Changes Requested.

--
https://patchwork.kernel.org/project/linux-wireless/patch/20210307083445.21322-1-baijiaju1990@xxxxxxxxx/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches