Re: [PATCH][next] scsi: lpfc: fix pointer defereference before it is null checked issue

From: Martin K. Petersen
Date: Thu Nov 19 2020 - 22:14:12 EST



Colin,

> There is a null check on pointer lpfc_cmd after the pointer has been
> dereferenced when pointers rdata and ndlp are initialized at the start
> of the function. Fix this by only assigning rdata and ndlp after the
> pointer lpfc_cmd has been null checked.

Applied to 5.11/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering