Commit 66e05225 authored by Brian King's avatar Brian King Committed by Linus Torvalds
Browse files

[PATCH] Fix SCSI scanning slab corruption

There is a double free in the scsi scan code if a LLDD's slave_alloc()
call fails.  There is a direct call to scsi_free_queue and then the
following put_device calls the release function, which also frees the

Remove the redundant scsi_free_queue.

Signed-off-by: default avatarBrian King <>
Tested-by: default avatarNathan Lynch <>
[ Also removed some strange whitespace artifacts in that area ]
Signed-off-by: default avatarLinus Torvalds <>
parent 49d7bc64
......@@ -266,8 +266,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
* if LLDD reports slave not present, don't clutter
* console with alloc failure messages
if (ret == -ENXIO)
display_failure_msg = 0;
......@@ -279,7 +277,6 @@ static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
if (display_failure_msg)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment