diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2012-04-15 05:01:28 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-15 20:08:53 +0200 |
commit | 919f797a4c9c22ff5ec059744dba364dc600ece2 (patch) | |
tree | 6f2183e84c2bcfdc6eebed82319a4a21b871bdea /include/scsi/scsi_tgt.h | |
parent | Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-919f797a4c9c22ff5ec059744dba364dc600ece2.tar.xz linux-919f797a4c9c22ff5ec059744dba364dc600ece2.zip |
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>
Diffstat (limited to 'include/scsi/scsi_tgt.h')
0 files changed, 0 insertions, 0 deletions