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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index dde91e7e1c3a..73d6a735b8f3 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1258,8 +1258,8 @@ static int __blkdev_get(struct block_device *bdev, fmode_t mode, int for_part)
1258 bd_set_size(bdev, (loff_t)bdev->bd_part->nr_sects << 9); 1258 bd_set_size(bdev, (loff_t)bdev->bd_part->nr_sects << 9);
1259 } 1259 }
1260 } else { 1260 } else {
1261 put_disk(disk);
1262 module_put(disk->fops->owner); 1261 module_put(disk->fops->owner);
1262 put_disk(disk);
1263 disk = NULL; 1263 disk = NULL;
1264 if (bdev->bd_contains == bdev) { 1264 if (bdev->bd_contains == bdev) {
1265 if (bdev->bd_disk->fops->open) { 1265 if (bdev->bd_disk->fops->open) {