]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix scsi_report_lun_scan sign bug
authorAndrew Morton <akpm@osdl.org>
Tue, 18 Nov 2003 10:09:47 +0000 (02:09 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 18 Nov 2003 10:09:47 +0000 (02:09 -0800)
commit108ff4c263028e56b347a5451581180b3868003b
treedfb299abdea373585212e3fac43d3124a66b6b27
parentfbbef764ed4c4417924b803d86467835de2a448b
[PATCH] Fix scsi_report_lun_scan sign bug

We need to make the scan data unsigned, since we do

  length = ((data[0] << 24) | (data[1] << 16) |
    (data[2] << 8) | (data[3] << 0));

and if data[3] is 0xff, this expression will always evaluate to
0xffffffff.  etcetera.
drivers/scsi/scsi_scan.c