[SCSI] fix two leaks in scsi_alloc_sdev failure paths
authorDave Jones <davej@redhat.com>
Thu, 9 Mar 2006 15:21:27 +0000 (10:21 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 12 Mar 2006 15:25:40 +0000 (09:25 -0600)
If the scsi_alloc_queue or the slave_alloc calls in scsi_alloc_device fail,
we forget to release the locally allocated sdev on the failure path.

Coverity #609

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found