]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Fix null bh pointer dereference in mballoc
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 10 Feb 2008 06:07:28 +0000 (01:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 10 Feb 2008 06:07:28 +0000 (01:07 -0500)
commit6bafe46d2b9546f397920d9b25df543dca4124d5
tree3acf1bdd712f1a53181b1b386c4be8ab0fa58713
parentf05873afb03de5bd092b0159c3e6713d84a4aeda
ext4: Fix null bh pointer dereference in mballoc

Repoted by Adrian Bunk <bunk@kernel.org>:

The Coverity checker spotted the following NULL dereference:

static int ext4_mb_mark_diskspace_used
{
...
if (!bitmap_bh)
goto out_err;
...
out_err:
sb->s_dirt = 1;
put_bh(bitmap_bh);
...

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
fs/ext4/mballoc.c