git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ext4: atomically set inode->i_flags in ext4_set_inode_flags()
[pandora-kernel.git]
/
fs
/
ext4
/
mmp.c
diff --git
a/fs/ext4/mmp.c
b/fs/ext4/mmp.c
index
7ea4ba4
..
f3358ab
100644
(file)
--- a/
fs/ext4/mmp.c
+++ b/
fs/ext4/mmp.c
@@
-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);