[SCSI] sr: partial revert of 24669f75a3231fa37444977c92d1f4838bec1233
authorJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 7 Mar 2006 20:53:40 +0000 (14:53 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 7 Mar 2006 20:53:40 +0000 (14:53 -0600)
The patch

[SCSI] SCSI core kmalloc2kzalloc

Has an incorrect piece in sr_ioctl.c; it changes buffer from kmalloc
to kzalloc, but then removes the clearing of the stack variable struct
packet_command.  This, in turn leaves rubbish in the sense pointer
which the sr_do_ioctl() command then happily writes to ... oops.

Thanks to Mike Christie <michaelc@cs.wisc.edu> for spotting this.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found