aboutsummaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
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 7346c96308a5..204a7632c511 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,
734 return ERR_PTR(-ENXIO); 734 return ERR_PTR(-ENXIO);
735 735
736 whole = bdget_disk(disk, 0); 736 whole = bdget_disk(disk, 0);
737 module_put(disk->fops->owner);
737 put_disk(disk); 738 put_disk(disk);
738 if (!whole) 739 if (!whole)
739 return ERR_PTR(-ENOMEM); 740 return ERR_PTR(-ENOMEM);