From: Martin K. Petersen Date: Sun, 15 Apr 2012 03:01:28 +0000 (-0400) Subject: SCSI: Fix error handling when no ULD is attached X-Git-Tag: v3.4-rc3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=919f797a4c9c22ff5ec059744dba364dc600ece2;p=pandora-kernel.git SCSI: Fix error handling when no ULD is attached Commit 18a4d0a22ed6 ("[SCSI] Handle disk devices which can not process medium access commands") introduced a bug in which we would attempt to dereference the scsi driver even when the device had no ULD attached. Ensure that a driver is registered and make the driver accessor function more resilient to errors during device discovery. Reported-by: Elric Fu Reported-by: Bart Van Assche Signed-off-by: Martin K. Petersen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed