summaryrefslogtreecommitdiffstats
path: root/fs/bio.c
diff options
context:
space:
mode:
authorVivek Goyal2012-02-08 20:03:39 +0100
committerJens Axboe2012-02-08 20:03:39 +0100
commit4609dff6b5d11e1ed5ff935e15f9f6022acb312b (patch)
treeb1ffb94d7247ad6ba70e8d76800907a6450f7ebd /fs/bio.c
parentfloppy: Cleanup disk->queue before caling put_disk() if add_disk() was never ... (diff)
downloadkernel-qcow2-linux-4609dff6b5d11e1ed5ff935e15f9f6022acb312b.tar.gz
kernel-qcow2-linux-4609dff6b5d11e1ed5ff935e15f9f6022acb312b.tar.xz
kernel-qcow2-linux-4609dff6b5d11e1ed5ff935e15f9f6022acb312b.zip
floppy: Fix a crash during rmmod
floppy driver does not call add_disk() on all the drives hence we don't take gendisk reference on request queue for these drives. Don't call put_disk() with disk->queue set, otherwise we try to put the reference we never took. Reported-and-tested-by: Dirk Gouders <gouders@et.bocholt.fh-gelsenkirchen.de> Signed-off-by: Vivek Goyal<vgoyal@redhat.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/bio.c')
0 files changed, 0 insertions, 0 deletions