diff options
author | Ed Lin <ed.lin@promise.com> | 2009-12-19 02:34:51 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-01-04 18:39:41 +0100 |
commit | 91e6ecada757a6e2ef7b937634af8a04376772a1 (patch) | |
tree | 6400b2a5a34b62787e69c0ca79e7466534124e32 /drivers/scsi/scsi_error.c | |
parent | [SCSI] pmcraid: fix to avoid twice scsi_dma_unmap for a command (diff) | |
download | linux-91e6ecada757a6e2ef7b937634af8a04376772a1.tar.xz linux-91e6ecada757a6e2ef7b937634af8a04376772a1.zip |
[SCSI] stex: fix scan of nonexistent lun
During a manual scan, a user can send command to a nonexistent
lun, precisely at the point of max_lun. Normally it's possible
(but not required) that the firmware has the knowledge that it
is an invalid lun. In the particular case when max_lun is 256,
however, the nonexistent lun 256 will be confused with lun 0,
because the lun member in a request message is only u8, and 256
will become 0. So we need to fix the problem, at least, at the
driver level.
Signed-off-by: Ed Lin <ed.lin@promise.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions