diff options
author | Daniel Stodden <daniel.stodden@citrix.com> | 2010-05-01 02:01:17 +0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-08-07 20:31:37 +0400 |
commit | 9897cb532382f075b337f7933b5a50f0ffc32d35 (patch) | |
tree | 9e8c94e27f2e7a773c6703b249f420bc1be3973d /drivers/block/xen-blkfront.c | |
parent | 89de1669ace055b56f1de1c9f5aca26dd7f17f25 (diff) | |
download | linux-9897cb532382f075b337f7933b5a50f0ffc32d35.tar.xz |
blkfront: Fix gendisk leak
Signed-off-by: Daniel Stodden <daniel.stodden@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 3 |
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) blk_cleanup_queue(info->rq); info->rq = NULL; + put_disk(info->gd); + info->gd = NULL; + out: if (info->xbdev) xenbus_frontend_closed(info->xbdev); |