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, 2 insertions, 0 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index bc8f27cc4483..702b88cbd91d 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1131,6 +1131,8 @@ static int blkdev_open(struct inode * inode, struct file * filp)
1131 filp->f_flags |= O_LARGEFILE; 1131 filp->f_flags |= O_LARGEFILE;
1132 1132
1133 bdev = bd_acquire(inode); 1133 bdev = bd_acquire(inode);
1134 if (bdev == NULL)
1135 return -ENOMEM;
1134 1136
1135 res = do_open(bdev, filp, BD_MUTEX_NORMAL); 1137 res = do_open(bdev, filp, BD_MUTEX_NORMAL);
1136 if (res) 1138 if (res)