[SCSI] drivers/scsi/sr_ioctl.c: check for failed allocation
authorNate Dailey <nhdailey@verizon.net>
Thu, 21 Apr 2005 20:14:05 +0000 (16:14 -0400)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 21 Apr 2005 20:14:05 +0000 (16:14 -0400)
commit3a73e8c7715cdf53c24b602bfca15ec54d7c989b
treeac2db6d657a1335f51226d58acf69a98173a0cbb
parent0bdcd78ea2342ad1a9c79cac99eefcfd0b3f1c2b
[SCSI] drivers/scsi/sr_ioctl.c: check for failed allocation

I noticed a case in sr_ioctl.c's sr_get_mcn where a buffer is
allocated, but the pointer isn't checked for null.

Signed-off-by: Nate Dailey <nate.dailey@stratus.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sr_ioctl.c