summaryrefslogtreecommitdiff
path: root/net/tipc/net.c
diff options
context:
space:
mode:
authorWenchao Hao <haowenchao2@huawei.com>2023-10-11 21:03:50 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 16:46:32 +0000
commit77072ec41d6ab3718c3fc639bc149b8037caedfa (patch)
tree5d9cd9c8efc2e0c8916af69ded40d2e2377f5787 /net/tipc/net.c
parentff30a3aeaf035907878e120ed53dd13a80a5d377 (diff)
scsi: libfc: Fix potential NULL pointer dereference in fc_lport_ptp_setup()
[ Upstream commit 4df105f0ce9f6f30cda4e99f577150d23f0c9c5f ] fc_lport_ptp_setup() did not check the return value of fc_rport_create() which can return NULL and would cause a NULL pointer dereference. Address this issue by checking return value of fc_rport_create() and log error message on fc_rport_create() failed. Signed-off-by: Wenchao Hao <haowenchao2@huawei.com> Link: https://lore.kernel.org/r/20231011130350.819571-1-haowenchao2@huawei.com Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions