diff options
| -rw-r--r-- | drivers/scsi/scsi_scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index be14f9d82fde..5d4ca87af3df 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
| @@ -251,6 +251,7 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget, | |||
| 251 | /* release fn is set up in scsi_sysfs_device_initialise, so | 251 | /* release fn is set up in scsi_sysfs_device_initialise, so |
| 252 | * have to free and put manually here */ | 252 | * have to free and put manually here */ |
| 253 | put_device(&starget->dev); | 253 | put_device(&starget->dev); |
| 254 | kfree(sdev); | ||
| 254 | goto out; | 255 | goto out; |
| 255 | } | 256 | } |
| 256 | 257 | ||
