Martin K. Petersen 919f797a4c 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 <elricfu1@gmail.com>
Reported-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-04-15 11:08:53 -07:00
..
2012-03-22 12:55:29 -07:00
2012-02-19 08:08:58 -06:00
2012-02-19 08:08:58 -06:00
2012-02-29 15:39:25 -06:00
2009-12-30 12:23:27 -08:00
2009-03-12 12:58:06 -05:00
2012-02-29 15:35:41 -06:00
2007-10-12 14:51:56 -04:00
2006-04-14 15:47:45 -05:00
2007-10-12 14:37:50 -04:00
2005-04-16 15:20:36 -07:00
2010-03-12 15:53:10 -08:00