[SCSI] fix double free of scsi request queue
Current scsi scanning code appears to have a use after free bug is a LLDD's slave_alloc fails. Remove the redundant scsi_free_queue. Signed-off-by: Brian King <brking@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
parent
a8c730e85e
commit
1a68de5c08
1 changed files with 0 additions and 1 deletions
|
@ -279,7 +279,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
|
||||||
|
|
||||||
out_device_destroy:
|
out_device_destroy:
|
||||||
transport_destroy_device(&sdev->sdev_gendev);
|
transport_destroy_device(&sdev->sdev_gendev);
|
||||||
scsi_free_queue(sdev->request_queue);
|
|
||||||
put_device(&sdev->sdev_gendev);
|
put_device(&sdev->sdev_gendev);
|
||||||
out:
|
out:
|
||||||
if (display_failure_msg)
|
if (display_failure_msg)
|
||||||
|
|
Loading…
Reference in a new issue