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-28 15:58:21 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-31 13:31:23 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-02-19 08:08:55 -06:00
2012-03-28 15:09:28 +01:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-01-22 14:50:03 +01:00
2012-03-31 13:31:23 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-02-21 11:40:37 +01:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-12 09:13:31 -07:00
2012-03-31 13:31:23 -07:00
2012-03-31 13:31:23 -07:00
2012-03-28 18:30:03 +01:00