blkfront: Fix backtrace in del_gendisk
commit89de1669ace055b56f1de1c9f5aca26dd7f17f25
authorDaniel Stodden <daniel.stodden@citrix.com>
Fri, 30 Apr 2010 22:01:16 +0000 (30 22:01 +0000)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:31:35 +0000 (7 18:31 +0200)
treec67f2fa68f79eb9e4c31ef6991b23a58602039d6
parent5b61cb90c2ad8c853b4dd53eec200bacd2f02172
blkfront: Fix backtrace in del_gendisk

The call to del_gendisk follows an non-refcounted gd->queue
pointer. We release the last ref in blk_cleanup_queue. Fixed by
reordering releases accordingly.

Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/block/xen-blkfront.c