diff options
author | Justin Tee <justin.tee@broadcom.com> | 2024-09-13 02:24:43 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-09-13 04:21:19 +0300 |
commit | d1a2ef63fc8b3e3dc5b74b7e08636896b32acbdc (patch) | |
tree | 697f93eef8a612cef058054b5cef44d232b9f829 /drivers/soundwire | |
parent | 05ab4e7846f1103377133c00295a9a910cc6dfc2 (diff) | |
download | linux-d1a2ef63fc8b3e3dc5b74b7e08636896b32acbdc.tar.xz |
scsi: lpfc: Fix kref imbalance on fabric ndlps from dev_loss_tmo handler
With a FLOGI outstanding and loss of physical link connection to the fabric
for the duration of dev_loss_tmo, there is a fabric ndlp kref imbalance
that decrements the kref and sets the NLP_IN_RECOV_POST_DEV_LOSS flag at
the same time.
The issue is that when the FLOGI completion routine executes, the fabric
ndlp could already be freed because of the final kref put from the
dev_loss_tmo handler. Fix by early returning before the ndlp kref put if
the ndlp is deemed a candidate for NLP_IN_RECOV_POST_DEV_LOSS in the FLOGI
completion routine.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240912232447.45607-5-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/soundwire')
0 files changed, 0 insertions, 0 deletions