From: Vivek Goyal Date: Wed, 8 Feb 2012 19:03:39 +0000 (+0100) Subject: floppy: Fix a crash during rmmod X-Git-Tag: v3.3-rc4~33^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4609dff6b5d11e1ed5ff935e15f9f6022acb312b;p=pandora-kernel.git 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 Signed-off-by: Vivek Goyal Acked-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed