Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=42a10add852e6291a7544afd8a286622a3e6ae76
Commit:     42a10add852e6291a7544afd8a286622a3e6ae76
Parent:     b8356c465b42c162f34b5fd4102a6c27cec36f43
Author:     Aneesh Kumar K.V <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 10 01:07:28 2008 -0500
Committer:  Theodore Ts'o <[EMAIL PROTECTED]>
CommitDate: Sun Feb 10 01:07:28 2008 -0500

    ext4: Fix null bh pointer dereference in mballoc
    
    Repoted by Adrian Bunk <[EMAIL PROTECTED]>:
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mingming Cao <[EMAIL PROTECTED]>
---
 fs/ext4/mballoc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 76e5fed..06d1f52 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3069,7 +3069,7 @@ static int ext4_mb_mark_diskspace_used(struct 
ext4_allocation_context *ac,
 
 out_err:
        sb->s_dirt = 1;
-       put_bh(bitmap_bh);
+       brelse(bitmap_bh);
        return err;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to