]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fix oops in all legacy host adapters caused by 075ef7b
authorJames Bottomley <jbottomley@parallels.com>
Fri, 4 May 2012 09:40:04 +0000 (09:40 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 07:24:13 +0000 (08:24 +0100)
commit22b9f5276aea94201960b27d79db007469c4340e
treea20954c16b517c4561d88216830e288d7c0fefb4
parent7577ef0cba7d1eb9fb4c0112907d226b1602585b
[SCSI] fix oops in all legacy host adapters caused by 075ef7b

Commit 075ef7b098a819a9b5580d6cc592d2c068aaea8b
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>
drivers/scsi/hosts.c