Re: [PATCH v3] staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()

From: Greg KH
Date: Fri Sep 09 2022 - 03:52:22 EST


On Thu, Sep 08, 2022 at 03:31:25PM +0800, xkernel.wang@xxxxxxxxxxx wrote:
> From: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>
>
> In rtw_init_drv_sw(), there are various init functions are called to
> populate the padapter structure and some checks for their return value.
> However, except for the first one error path, the other five error paths
> do not properly release the previous allocated resources, which leads to

You have trailing whitespace on your text :(

> various memory leaks.
>
> This patch fixes them and keeps the success and error separate. As there
> is no FooBar device to test with, no runtime testing was performed.

What do you mean by "FooBar"? Please fix that up.

thanks,

greg k-h