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

From: Andy Shevchenko

Date: Wed Feb 04 2026 - 08:36:16 EST


On Wed, Feb 04, 2026 at 10:20:45PM +0900, Minu Jin wrote:
> 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.

Let's wait a bit (24h), but usually Greg requires a resend if something needs
to be updated before applying.

--
With Best Regards,
Andy Shevchenko