RE: [PATCH 2/5] scsi: fnic: Do not use GFP_ZERO for mempools
From: Karan Tilak Kumar (kartilak)
Date: Thu Feb 19 2026 - 14:31:24 EST
On Wednesday, February 18, 2026 10:06 PM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
>
> On Tue, Feb 17, 2026 at 02:39:40PM -0800, Karan Tilak Kumar wrote:
> > One cannot use the GFP_ZERO flag for mempool allocation, so use
> > memset() instead.
> >
>
> This kind of thing could easily translate into a static checker rule.
>
> KTODO: make a static checker rule to not pass GFP_ZERO to mempool_alloc()
>
> regards,
> dan carpenter
>
Thanks for your insights, Dan.
Regards,
Karan