git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SCSI] stex: fix scan of nonexistent lun
[pandora-kernel.git]
/
drivers
/
scsi
/
stex.c
diff --git
a/drivers/scsi/stex.c
b/drivers/scsi/stex.c
index
3058bb1
..
fd7b15b
100644
(file)
--- a/
drivers/scsi/stex.c
+++ b/
drivers/scsi/stex.c
@@
-623,6
+623,11
@@
stex_queuecommand(struct scsi_cmnd *cmd, void (* done)(struct scsi_cmnd *))
}
break;
case INQUIRY:
+ if (lun >= host->max_lun) {
+ cmd->result = DID_NO_CONNECT << 16;
+ done(cmd);
+ return 0;
+ }
if (id != host->max_id - 1)
break;
if (!lun && !cmd->device->channel &&