Re: [EXT] [PATCH] scsi: qedf: potential dereference of null pointer

From: Jakub Kicinski
Date: Mon Jan 03 2022 - 12:12:28 EST


On Mon, 3 Jan 2022 04:58:41 +0000 Saurav Kashyap wrote:
> > QEDF_TERM_BUFF_SIZE,
> > &term_params_dma, GFP_KERNEL);
> > + if (!term_params)
> > + return;
>
> <SK> Adding message about failure before returning will help in debugging.

Memory allocations produce a pretty detailed splat.