]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: fix refcount error on node list
authorJames Smart <jsmart2021@gmail.com>
Wed, 21 Jun 2017 17:51:23 +0000 (10:51 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 26 Jun 2017 19:01:01 +0000 (15:01 -0400)
commit9f4666b3a84a0139a06b72b8cfe24d08c2250afc
tree3b0eb7c5f4c66b88a7edd88833fd4ddd15232e91
parentc1f6d2830d458ba9f0f8c6cd074604bf1407bdfa
scsi: lpfc: fix refcount error on node list

A change in remote port removal introduced a spurious put which can
cause a premature structure teardown. The affects were most notable when
the driver attempted to unload as a null pointer would be hit.

Fix by removing the unnecessary put.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c