diff options
Diffstat (limited to 'ANDROID_3.4.5/drivers/scsi/scsi_lib.c')
-rw-r--r-- | ANDROID_3.4.5/drivers/scsi/scsi_lib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ANDROID_3.4.5/drivers/scsi/scsi_lib.c b/ANDROID_3.4.5/drivers/scsi/scsi_lib.c index 4037fd5b..7ca46131 100644 --- a/ANDROID_3.4.5/drivers/scsi/scsi_lib.c +++ b/ANDROID_3.4.5/drivers/scsi/scsi_lib.c @@ -1165,7 +1165,10 @@ EXPORT_SYMBOL(scsi_setup_fs_cmnd); int scsi_prep_state_check(struct scsi_device *sdev, struct request *req) { int ret = BLKPREP_OK; - + if(sdev==NULL){ + ret = BLKPREP_KILL; + return ret; + } /* * If the device is not in running state we will reject some * or all commands. |