]> err.no Git - linux-2.6/commit
[SCSI] scsi: Handle device_add failure in scsi_alloc_target
authorBrian King <brking@us.ibm.com>
Wed, 22 Feb 2006 20:28:24 +0000 (14:28 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 28 Feb 2006 05:38:59 +0000 (23:38 -0600)
commit32f95792500794a0a7cce266b7dafb2bee323bf8
treef7565bd227ffbb71b72f306de84bb1dca3bd0917
parentffedb4522571ac170f941678d138a31bc0884ab4
[SCSI] scsi: Handle device_add failure in scsi_alloc_target

Fixes scsi to handle device_add failure in scsi_alloc_target.
Without this patch, if this call were to fail, we can oops
when we free the target.

Signed-off-by: Brian King <brking@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c