[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
queue.

Remove the redundant scsi_free_queue.

Signed-off-by: Brian King <brking@us.ibm.com>
Tested-by: Nathan Lynch <ntl@pobox.com>
[ Also removed some strange whitespace artifacts in that area ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Brian King and committed by Linus Torvalds 66e05225 49d7bc64

-3
-3
drivers/scsi/scsi_scan.c
··· 266 266 /* 267 267 * if LLDD reports slave not present, don't clutter 268 268 * console with alloc failure messages 269 - 270 - 271 269 */ 272 270 if (ret == -ENXIO) 273 271 display_failure_msg = 0; ··· 277 279 278 280 out_device_destroy: 279 281 transport_destroy_device(&sdev->sdev_gendev); 280 - scsi_free_queue(sdev->request_queue); 281 282 put_device(&sdev->sdev_gendev); 282 283 out: 283 284 if (display_failure_msg)