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

From: Andy Shevchenko

Date: Wed Feb 04 2026 - 05:21:54 EST


On Wed, Feb 04, 2026 at 03:44:51PM +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.
>
> Also, convert error return codes from -1 to -ENOMEM where appropriate.

On the first glance LGTM,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>

--
With Best Regards,
Andy Shevchenko