Linus Torvalds c093ee4f07 floppy: fix use-after-free in module load failure path
Commit 488211844e0c ("floppy: switch to one queue per drive instead of
sharing a queue") introduced a use-after-free.  We do "put_disk()" on
the disk device _before_ we then clean up the queue associated with that
disk.

Move the put_disk() down to avoid dereferencing a free'd data structure.

Cc: Jens Axboe <jaxboe@fusionio.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Reported-and-tested-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-05 17:45:59 -07:00
..
2010-08-07 18:52:30 +02:00
2010-02-22 13:44:45 +01:00
2010-10-28 06:33:27 -06:00
2010-08-07 18:52:30 +02:00
2009-03-26 21:15:27 +01:00
2008-10-21 07:48:11 -04:00