diff options
author | Martin K. Petersen <[email protected]> | 2012-04-14 23:01:28 -0400 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-04-15 11:08:53 -0700 |
commit | 919f797a4c9c22ff5ec059744dba364dc600ece2 (patch) | |
tree | 6f2183e84c2bcfdc6eebed82319a4a21b871bdea /net/lapb/lapb_timer.c | |
parent | bfecc60d8f6715ec6b38aa29c4f5a3570415dae0 (diff) |
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 <[email protected]>
Reported-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions