]> git.itanic.dy.fi Git - linux-stable/commit
scsi: hisi_sas: Check sas_port before using it
authorXiang Chen <chenxiang66@hisilicon.com>
Tue, 12 Nov 2019 09:30:56 +0000 (17:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2020 07:22:55 +0000 (09:22 +0200)
commitc565487ff9d82f532346a2d0eaba75fe1844effe
tree467e43d67afcf1e7bbed3ccdad6e0a6e7df98e43
parentb8ef8cd89a721a318fa611bfaed72ab90d28d180
scsi: hisi_sas: Check sas_port before using it

[ Upstream commit 8c39673d5474b95374df2104dc1f65205c5278b8 ]

Need to check the structure sas_port before using it.

Link: https://lore.kernel.org/r/1573551059-107873-2-git-send-email-john.garry@huawei.com
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_main.c