[SCSI] fix sense buffer length handling problem
authorJames Bottomley <James.Bottomley@steeleye.com>
Tue, 9 Aug 2005 16:55:36 +0000 (11:55 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 28 Aug 2005 16:34:12 +0000 (11:34 -0500)
commite514385be2b355c1f3fc6385a98a6a0fc04235ae
tree5506bb95c40532666552eef52566436d0551bed9
parentc9d297c543f379a27a34082070ed03a8ef846fc2
[SCSI] fix sense buffer length handling problem

The new bio code was incorrectly converted from stack allocated to
kmalloc'd buffer handling.  There are two places where it incorrectly
uses sizeof(*sense) to get the size of the sense buffer.  This
actually produces one, so no sense data was ever getting back, causing
failure in things like disk spin up.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c