From: Ed Lin Date: Sat, 19 Dec 2009 01:34:51 +0000 (-0800) Subject: [SCSI] stex: fix scan of nonexistent lun X-Git-Tag: v2.6.33-rc4~82^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91e6ecada757a6e2ef7b937634af8a04376772a1;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed