aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2010-11-06 00:45:59 +0000
committerLinus Torvalds <[email protected]>2010-11-06 00:45:59 +0000
commitc093ee4f07f46d3a835841cafa07514fa94878d2 (patch)
treeaafb816d450e3e3dd352c650b50fe2202919dd2c /lib/dynamic_debug.c
parentwatchdog: Fix section mismatch and potential undefined behavior. (diff)
downloadkernel-c093ee4f07f46d3a835841cafa07514fa94878d2.tar.gz
kernel-c093ee4f07f46d3a835841cafa07514fa94878d2.zip
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 <[email protected]> Cc: Vivek Goyal <[email protected]> Reported-and-tested-by: Randy Dunlap <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions