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
..
2011-03-31 11:26:23 -03: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
2011-07-26 16:49:47 -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
2011-09-26 09:28:58 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-12-22 18:57:02 +01:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2012-03-31 13:31:23 -07:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2012-02-19 08:08:55 -06:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-03-28 15:09:28 +01:00
2011-03-31 11:26:23 -03:00
2012-01-02 13:04:55 +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
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-05-02 15:55:03 -04:00
2011-08-27 08:36:58 -06:00
2011-08-27 08:36:58 -06:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2012-02-21 11:40:37 +01:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08: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-01-03 22:54:07 -05:00
2012-03-31 13:31:23 -07:00
2012-01-02 13:04:55 +01:00
2012-03-31 13:31:23 -07:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00