+ null-dereference-in-fs-jbd-journalc.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     null dereference in fs/jbd/journal.c

has been added to the -mm tree.  Its filename is

     null-dereference-in-fs-jbd-journalc.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: null dereference in fs/jbd/journal.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

Since commit d1807793e1e7e502e3dc047115e9dbc3b50e4534 we dereference a NULL
pointer.  Coverity id #1432.  We set journal to NULL, and use it directly
afterwards.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/jbd/journal.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/jbd/journal.c~null-dereference-in-fs-jbd-journalc fs/jbd/journal.c
--- a/fs/jbd/journal.c~null-dereference-in-fs-jbd-journalc
+++ a/fs/jbd/journal.c
@@ -725,6 +725,7 @@ journal_t * journal_init_dev(struct bloc
 			__FUNCTION__);
 		kfree(journal);
 		journal = NULL;
+		goto out;
 	}
 	journal->j_dev = bdev;
 	journal->j_fs_dev = fs_dev;
@@ -735,7 +736,7 @@ journal_t * journal_init_dev(struct bloc
 	J_ASSERT(bh != NULL);
 	journal->j_sb_buffer = bh;
 	journal->j_superblock = (journal_superblock_t *)bh->b_data;
-
+out:
 	return journal;
 }
 
_

Patches currently in -mm which might be from snakebyte@xxxxxx are

origin.patch
reiserfs-null-pointer-dereferencing-in-reiserfs_read_bitmap_block.patch
null-dereference-in-fs-jbd-journalc.patch
remove-unnecessary-check-in-drivers-video-intelfb-intelfbhwc.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
off-by-one-in-arch-ppc-platforms-mpc8.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
dereference-in-drivers-scsi-lpfc-lpfc_ctc.patch
memory-leak-in-drivers-usb-serial-airprimec.patch
possible-dereference-in-drivers-net-wireless-zd1201c.patch
remove-unnecessary-check-in-fs-fat-inodec.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux