]> git.baikalelectronics.ru Git - kernel.git/commit
Allocate 96 bytes for SCSI sense data reply
authorLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:41:44 +0000 (17:41 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 7 Mar 2006 01:41:44 +0000 (17:41 -0800)
commit287b6f4a84c0cb2892a6a522d3316ea4c413bdbe
tree20004f3dc2f11b83b5debe3a784d3f105c6e4daa
parent63b0ac9d2a937e8215e637aa6034e878844cd8b9
Allocate 96 bytes for SCSI sense data reply

The SCSI layer uses SCSI_SENSE_BUFFERSIZE (96) for the sense buffer
size, even though some other code uses "sizeof(struct request_sense)"
(which is 64 bytes).  Allocate the buffer using the bigger of the two
for safety.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/sr_ioctl.c