+ remove-unnecessary-check-in-fs-reiserfs-inodec.patch added to -mm tree

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

 



The patch titled

     Remove unnecessary check in fs/reiserfs/inode.c

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

     remove-unnecessary-check-in-fs-reiserfs-inodec.patch

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

------------------------------------------------------
Subject: Remove unnecessary check in fs/reiserfs/inode.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

Since all callers dereference dir, we dont need this check.  Coverity id
#337.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Jeff Mahoney <jeffm@xxxxxxxx>
Cc: <reiserfs-dev@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/reiserfs/inode.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/reiserfs/inode.c~remove-unnecessary-check-in-fs-reiserfs-inodec fs/reiserfs/inode.c
--- a/fs/reiserfs/inode.c~remove-unnecessary-check-in-fs-reiserfs-inodec
+++ a/fs/reiserfs/inode.c
@@ -1780,7 +1780,7 @@ int reiserfs_new_inode(struct reiserfs_t
 		err = -EDQUOT;
 		goto out_end_trans;
 	}
-	if (!dir || !dir->i_nlink) {
+	if (!dir->i_nlink) {
 		err = -EPERM;
 		goto out_bad_inode;
 	}
_

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

origin.patch
git-gfs2.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
git-scsi-misc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
dereference-in-drivers-scsi-lpfc-lpfc_ctc.patch
possible-dereference-in-drivers-net-wireless-zd1201c.patch
remove-unnecessary-check-in-fs-reiserfs-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