|
@@ -251,6 +251,7 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
|
|
|
/* release fn is set up in scsi_sysfs_device_initialise, so
|
|
/* release fn is set up in scsi_sysfs_device_initialise, so
|
|
|
* have to free and put manually here */
|
|
* have to free and put manually here */
|
|
|
put_device(&starget->dev);
|
|
put_device(&starget->dev);
|
|
|
|
|
+ kfree(sdev);
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|
|
|
|
|
|