ext4: fix potential null pointer dereference in ext4_free_inode
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 12 Jul 2014 20:11:42 +0000 (16:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 Jul 2014 20:11:42 +0000 (16:11 -0400)
commitbf40c92635d63fcc574c52649f7cda13e0418ac1
tree35f64bb357bc2db7ba35add326deb0d41084e092
parent3f1f9b851311a76226140b55b1ea22111234a7c2
ext4: fix potential null pointer dereference in ext4_free_inode

Fix potential null pointer dereferencing problem caused by e43bb4e612
("ext4: decrement free clusters/inodes counters when block group declared bad")

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
fs/ext4/ialloc.c