From: James Bottomley Date: Fri, 4 May 2012 09:40:04 +0000 (+0000) Subject: [SCSI] fix oops in all legacy host adapters caused by 6f381fa X-Git-Tag: v3.4-rc7~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c8d9a957d0ae62c2815393a781ab7ff4d5205e7;p=pandora-kernel.git [SCSI] fix oops in all legacy host adapters caused by 6f381fa Commit 6f381fa344911d5a234b13574433cf23036f9467 Author: Lin Ming [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed