Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178814
b: refs/heads/master
c: 91e6eca
h: refs/heads/master
v: v3
  • Loading branch information
Ed Lin authored and James Bottomley committed Jan 4, 2010
1 parent 4fb5335 commit 10262e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a70757ba9a3719f99760713c3b72134b21016c6e
refs/heads/master: 91e6ecada757a6e2ef7b937634af8a04376772a1
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/stex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 10262e4

Please sign in to comment.