summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_ctl.c
diff options
context:
space:
mode:
authorAles Novak <alnovak@suse.cz>2014-02-27 11:03:30 +0100
committerJames Bottomley <JBottomley@Parallels.com>2014-03-12 13:16:54 +0400
commitb12bb60d6c350b348a4e1460cd68f97ccae9822e (patch)
tree117d036d3334592cddf488b6575b5f1f0b0512c7 /drivers/scsi/pm8001/pm8001_ctl.c
parentb77ed25c9f8402e8b3e49e220edb4ef09ecfbb53 (diff)
downloadblackbird-op-linux-b12bb60d6c350b348a4e1460cd68f97ccae9822e.tar.gz
blackbird-op-linux-b12bb60d6c350b348a4e1460cd68f97ccae9822e.zip
[SCSI] storvsc: NULL pointer dereference fix
If the initialization of storvsc fails, the storvsc_device_destroy() causes NULL pointer dereference. storvsc_bus_scan() scsi_scan_target() __scsi_scan_target() scsi_probe_and_add_lun(hostdata=NULL) scsi_alloc_sdev(hostdata=NULL) sdev->hostdata = hostdata now the host allocation fails __scsi_remove_device(sdev) calls sdev->host->hostt->slave_destroy() == storvsc_device_destroy(sdev) access of sdev->hostdata->request_mempool Signed-off-by: Ales Novak <alnovak@suse.cz> Signed-off-by: Thomas Abraham <tabraham@suse.com> Reviewed-by: Jiri Kosina <jkosina@suse.cz> Acked-by: K. Y. Srinivasan <kys@microsoft.com> Cc: stable@vger.kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_ctl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud