ext4: atomically set inode->i_flags in ext4_set_inode_flags()
[pandora-kernel.git] / fs / ext4 / mmp.c
index 7ea4ba4..f3358ab 100644 (file)
@@ -41,6 +41,8 @@ static int read_mmp_block(struct super_block *sb, struct buffer_head **bh,
         * is not blocked in the elevator. */
        if (!*bh)
                *bh = sb_getblk(sb, mmp_block);
+       if (!*bh)
+               return -ENOMEM;
        if (*bh) {
                get_bh(*bh);
                lock_buffer(*bh);