]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Check return value of sb_getblk() and friends
authorNamhyung Kim <namhyung@gmail.com>
Thu, 28 Oct 2010 01:30:11 +0000 (21:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Oct 2010 01:30:11 +0000 (21:30 -0400)
commit8fefef98829b8c8173540e38fd1d70d5d2c449f6
treeeecb60e9b55daaf794a3083f9c48fc94e05d4cd2
parente397b5f54225a698bbbf63e645e4b512c2377477
ext4: Check return value of sb_getblk() and friends

Fail block allocation if sb_getblk() returns NULL. In that case,
sb_find_get_block() also likely to fail so that it should skip
calling ext4_forget().

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c
fs/ext4/mballoc.c