Re: [PATCH v2 1/1] scsi: lpfc: add null check of kzalloc in lpfc_sli4_cgn_params_read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 27 Feb 2023 20:43:36 -0800, Justin Tee wrote:

> If kzalloc fails in lpfc_sli4_cgn_params_read, then we rely on
> lpfc_read_object's routine to null check pdata.
> 
> Currently, an early return error is thrown from lpfc_read_object to
> protect us from null ptr dereference, but the errno code is -ENODEV.
> 
> Change the errno code to a more appropriate -ENOMEM.
> 
> [...]

Applied to 6.3/scsi-fixes, thanks!

[1/1] scsi: lpfc: add null check of kzalloc in lpfc_sli4_cgn_params_read
      https://git.kernel.org/mkp/scsi/c/312320b0e0ec

-- 
Martin K. Petersen	Oracle Linux Engineering



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux