summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJianglei Nie <niejianglei2021@163.com>2022-03-03 04:51:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-04-13 21:59:08 +0300
commitf581df412bc45c95176e3c808ee2839c05b2ab0c (patch)
tree71ed63a8a13689d8a0668d2f81fb7725a804c5c7 /net
parent2a71e3ecd829a82013cf095c55068c61d991e885 (diff)
downloadlinux-f581df412bc45c95176e3c808ee2839c05b2ab0c.tar.xz
scsi: libfc: Fix use after free in fc_exch_abts_resp()
[ Upstream commit 271add11994ba1a334859069367e04d2be2ebdd4 ] fc_exch_release(ep) will decrease the ep's reference count. When the reference count reaches zero, it is freed. But ep is still used in the following code, which will lead to a use after free. Return after the fc_exch_release() call to avoid use after free. Link: https://lore.kernel.org/r/20220303015115.459778-1-niejianglei2021@163.com Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions