[PATCH v16 11/11] nvme: use fdp streams if write stream is provided

Keith Busch kbusch at kernel.org
Tue May 6 09:28:06 PDT 2025


On Tue, May 06, 2025 at 09:14:19AM -0700, Caleb Sander Mateos wrote:
> > +       head->plids = kcalloc(head->nr_plids, sizeof(head->plids),
> > +                             GFP_KERNEL);
> 
> Should this be sizeof(*head->plids)?

Indeed it should. This as-is overallocates the array size, so wouldn't
have easily found it at runtime.



More information about the Linux-nvme mailing list