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