diff options
author | James Smart | 2022-05-05 20:55:10 -0700 |
---|---|---|
committer | Martin K. Petersen | 2022-05-10 22:12:02 -0400 |
commit | b7e952cbc63c8b98a7433f294321c3b89850305c (patch) | |
tree | 532614b2cb45150641f4bc3f1bb32fde6c95680b /crypto/crc32c_generic.c | |
parent | ba3d58a1df460ba28bb5989ad7269ff48682375a (diff) |
scsi: lpfc: Fix ndlp put following a LOGO completion
During testing with repeated asynchronous resets of the target, an issue
was found when the driver issues a LOGO to disconnect its login and recover
all exchanges. The LOGO command takes a node reference but neglects to
remove it, keeping the node reference count artifically high.
Add a call to lpfc_nlp_put() to lpfc_nlp_logo_unreg() and move the mempool
free call to the routine exit along with the needed put. This is always
safe as this will not be the last reference removed as lpfc_unreg_rpi()
ensures there is an additional reference on the ndlp.
Link: https://lore.kernel.org/r/20220506035519.50908-4-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'crypto/crc32c_generic.c')
0 files changed, 0 insertions, 0 deletions