Re: [PATCH v6 2/5] staging: rtl8723bs: replace rtw_malloc() with kmalloc()

From: Minu Jin

Date: Wed Feb 04 2026 - 08:45:17 EST


On Wed, Feb 04, 2026 at 10:13:44PM +0900, Minu Jin wrote:
> Replace the wrapper function rtw_malloc() with standard kmalloc().
> Call sites were reviewed to use appropriate GFP flags (GFP_KERNEL or
> GFP_ATOMIC) based on the execution context.
>
> About GFP Flags:
> - GFP_ATOMIC is used for allocations in atomic contexts such as
> spinlock-protected sections, tasklets, and timer handlers.
> - GFP_KERNEL is used for process contexts where sleeping is allowed.
>
> Also, convert error return codes from -1 to -ENOMEM where appropriate.
>
> Signed-off-by: Minu Jin <s9430939@xxxxxxxxx>

> Reviewd-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Apologies, I noticed a typo in the tag.
It should be:
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

Please let me know if you need me to resend v7 for this.