Re: [PATCH 2/5] scsi: fnic: Do not use GFP_ZERO for mempools

From: Dan Carpenter

Date: Thu Feb 19 2026 - 01:06:57 EST


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