aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 3258ae67ac7a..62d32959095d 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -1029,6 +1029,9 @@ static void blkfront_closing(struct blkfront_info *info)
1029 blk_cleanup_queue(info->rq); 1029 blk_cleanup_queue(info->rq);
1030 info->rq = NULL; 1030 info->rq = NULL;
1031 1031
1032 put_disk(info->gd);
1033 info->gd = NULL;
1034
1032 out: 1035 out:
1033 if (info->xbdev) 1036 if (info->xbdev)
1034 xenbus_frontend_closed(info->xbdev); 1037 xenbus_frontend_closed(info->xbdev);