]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] Test for sb_getblk return value
authorGlauber de Oliveira Costa <glommer@br.ibm.com>
Sun, 30 Oct 2005 23:03:05 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:26 +0000 (17:37 -0800)
commit2973dfdb877c17b36c27ba66d71028ff1eb2f32e
tree9734599068f3fcf7cd33f948235588f7a275d193
parent7f04c26d715a2467a49a2384268de8f70f787b51
[PATCH] Test for sb_getblk return value

This patch adds tests for the return value of sb_getblk() in the ext2/3
filesystems.  In fs/buffer.c it is stated that the getblk() function never
fails.  However, it does can return NULL in some situations due to I/O
errors, which may lead us to NULL pointer dereferences

Signed-off-by: Glauber de Oliveira Costa <glommer@br.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/inode.c
fs/ext3/inode.c
fs/ext3/resize.c