summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorBill Kuzeja <William.Kuzeja@stratus.com>2018-03-05 06:02:55 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-03-07 04:07:49 +0100
commit6a2cf8d3663e13e19af636c2a8d92e766261dc45 (patch)
tree56f12e3b1b65e6912480361c93b5a61442eac9d8 /drivers/scsi/sd.c
parentscsi: sd_zbc: Fix potential memory leak (diff)
downloadlinux-6a2cf8d3663e13e19af636c2a8d92e766261dc45.tar.xz
linux-6a2cf8d3663e13e19af636c2a8d92e766261dc45.zip
scsi: qla2xxx: Fix crashes in qla2x00_probe_one on probe failure
Because of the shifting around of code in qla2x00_probe_one recently, failures during adapter initialization can lead to problems, i.e. NULL pointer crashes and doubly freed data structures which cause eventual panics. This V2 version makes the relevant memory free routines idempotent, so repeat calls won't cause any harm. I also removed the problematic probe_init_failed exit point as it is not needed. Fixes: d64d6c5671db ("scsi: qla2xxx: Fix NULL pointer crash due to probe failure") Signed-off-by: Bill Kuzeja <william.kuzeja@stratus.com> Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions