summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2010-05-26 01:50:21 +1000
committerJens Axboe <jaxboe@fusionio.com>2010-06-10 19:08:34 +0200
commitcf3425707ed9ce0d5ebaba20bc3d22dd39e52f2f (patch)
tree49bf80d0e11e93f6b27ba481800901aae87597d7 /fs/block_dev.c
parent63a07cb64ccc3ceae619d3298545d602ab5ecd38 (diff)
downloadop-kernel-dev-cf3425707ed9ce0d5ebaba20bc3d22dd39e52f2f.zip
op-kernel-dev-cf3425707ed9ce0d5ebaba20bc3d22dd39e52f2f.tar.gz
block: bd_start_claiming fix module refcount
bd_start_claiming has an unbalanced module_put introduced in 6b4517a79. Signed-off-by: Nick Piggin <npiggin@suse.de> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 7346c96..204a763 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -734,6 +734,7 @@ static struct block_device *bd_start_claiming(struct block_device *bdev,
return ERR_PTR(-ENXIO);
whole = bdget_disk(disk, 0);
+ module_put(disk->fops->owner);
put_disk(disk);
if (!whole)
return ERR_PTR(-ENOMEM);
OpenPOWER on IntegriCloud