]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/block/floppy.c
ipv6: AF_INET6 link address family
[net-next-2.6.git] / drivers / block / floppy.c
index 8f19b380ca83a6aec417ab8eb8b8a2d50649ea8d..3951020e494ac803001083b186a5b7614eb6d42f 100644 (file)
@@ -4573,8 +4573,8 @@ static void __exit floppy_module_exit(void)
                        device_remove_file(&floppy_device[drive].dev, &dev_attr_cmos);
                        platform_device_unregister(&floppy_device[drive]);
                }
-               put_disk(disks[drive]);
                blk_cleanup_queue(disks[drive]->queue);
+               put_disk(disks[drive]);
        }
 
        del_timer_sync(&fd_timeout);