summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2019-11-05 03:57:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 14:14:26 +0300
commit91e31be9baa6c526eef764786fab2485f9765c82 (patch)
tree76bc2f89a29462fe33612e3303711d247d2c5457 /include/net
parent6971ba9e444c569ee93ef30d98afc06d4e8b7d4b (diff)
downloadlinux-91e31be9baa6c526eef764786fab2485f9765c82.tar.xz
scsi: lpfc: Fix kernel crash at lpfc_nvme_info_show during remote port bounce
[ Upstream commit 6c1e803eac846f886cd35131e6516fc51a8414b9 ] When reading sysfs nvme_info file while a remote port leaves and comes back, a NULL pointer is encountered. The issue is due to ndlp list corruption as the the nvme_info_show does not use the same lock as the rest of the code. Correct by removing the rcu_xxx_lock calls and replace by the host_lock and phba->hbaLock spinlocks that are used by the rest of the driver. Given we're called from sysfs, we are safe to use _irq rather than _irqsave. Link: https://lore.kernel.org/r/20191105005708.7399-4-jsmart2021@gmail.com 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions