[SCSI] eliminate potential kmalloc failure in scsi_get_vpd_page()
authorJames Bottomley <James.Bottomley@suse.de>
Tue, 3 Nov 2009 18:33:07 +0000 (12:33 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 18 Jan 2010 16:48:05 +0000 (10:48 -0600)
commite3deec090558d5cb5ffdc574e5560f3ed9723394
treec76a5e26a3e08598ada0a2de34adcdf714aa7168
parent534ef056db8a8fb6b9d50188d88ed5d1fbc66673
[SCSI] eliminate potential kmalloc failure in scsi_get_vpd_page()

The best way to fix this is to eliminate the intenal kmalloc() and
make the caller allocate the required amount of storage.

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi.c
drivers/scsi/sd.c
drivers/scsi/ses.c
include/scsi/scsi_device.h