]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: lpfc: Fix nvme allocation bug on failed nvme_fc_register_localport
authorJames Smart <jsmart2021@gmail.com>
Sat, 4 Mar 2017 17:30:29 +0000 (09:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Mar 2017 04:04:22 +0000 (23:04 -0500)
commit3ebd9b4701ef77358030a0ef9cb6586db2149712
tree761966d4126d717fd27a6adf6c34a0ccffc2fefe
parenta5068b46958870633ea340692f301507ef78d00b
scsi: lpfc: Fix nvme allocation bug on failed nvme_fc_register_localport

nvme bufs get allocated even when the registration fails.
Move allocation into the rsgistration success path.

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