summaryrefslogtreecommitdiff
path: root/drivers/scsi/virtio_scsi.c
diff options
context:
space:
mode:
authorJames Bottomley <jbottomley@parallels.com>2012-05-04 09:40:04 (GMT)
committerJames Bottomley <JBottomley@Parallels.com>2012-05-10 07:24:13 (GMT)
commit3c8d9a957d0ae62c2815393a781ab7ff4d5205e7 (patch)
treea20954c16b517c4561d88216830e288d7c0fefb4 /drivers/scsi/virtio_scsi.c
parent6abd7f132a4b74d9cdd3ef79fc71ca73909631f2 (diff)
downloadlinux-fsl-qoriq-3c8d9a957d0ae62c2815393a781ab7ff4d5205e7.tar.xz
[SCSI] fix oops in all legacy host adapters caused by 6f381fa
Commit 6f381fa344911d5a234b13574433cf23036f9467 Author: Lin Ming <ming.m.lin@intel.com> [SCSI] scsi_lib: use correct DMA device in __scsi_alloc_queue Caused a regression where we oops in every legacy mode SCSI host driver because they supply a NULL pointer to scsi_add_host(). Fix this by checking for the NULL in scsi_add_host_with_dma() and changing the DMA device to being the platform_bus in that case (which replicates the original behaviour). Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/virtio_scsi.c')
0 files changed, 0 insertions, 0 deletions