]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix nvmet handling of first burst cmd
authorJames Smart <jsmart2021@gmail.com>
Tue, 12 Mar 2019 23:30:11 +0000 (16:30 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 16:57:02 +0000 (12:57 -0400)
commit321e070a6191681dbebf6d70607bbe02b8ade5d5
tree326637216302edb140111a3b567343ac184dc6f1
parente895a1daf3a0dfef43e703fe7b5699464076d6dc
scsi: lpfc: Fix nvmet handling of first burst cmd

With negative test injection, the driver is receiving a command with first
burst enabled, meaning Sequence initiative is not passed with the command
frame. The driver notes the condition and discards the frame.  However the
driver calls the incorrect buffer free routine, resulting in a NULL pointer
reference.

For hbq buffer free, convert to using lpfc_rq_buf_free().

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c