[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)
commite12f0a3dec17de3d847f533ba81ad6956c9da5fd
treedb7c3936468c363d5ba710c6b6e2612a2a734964
parent5e6575c051f3313feb9fe1aad61263b3560df5cc
[SCSI] sr: partial revert of 24669f75a3231fa37444977c92d1f4838bec1233

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>
drivers/scsi/sr_ioctl.c