1
0
Fork 0
alistair23-linux/drivers/scsi/bnx2i
Pan Bian be4e660bca scsi: bnx2i: fix potential use after free
commit 29d28f2b8d upstream.

The member hba->pcidev may be used after its reference is dropped. Move the
put function to where it is never used to avoid potential use after free
issues.

Fixes: a771718065 ("[SCSI] bnx2i: Removed the reference to the netdev->base_addr")
Link: https://lore.kernel.org/r/1573043541-19126-1-git-send-email-bianpan2016@163.com
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:22:58 +01:00
..
57xx_iscsi_constants.h
57xx_iscsi_hsi.h
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bnx2i.h
bnx2i_hwi.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
bnx2i_init.c
bnx2i_iscsi.c scsi: bnx2i: fix potential use after free 2020-01-23 08:22:58 +01:00
bnx2i_sysfs.c