- affs-possible-null-pointer-dereference-in-affs_rename.patch removed from -mm tree

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

 



The patch titled

     affs: possible null pointer dereference in affs_rename()

has been removed from the -mm tree.  Its filename is

     affs-possible-null-pointer-dereference-in-affs_rename.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.

------------------------------------------------------
Subject: affs: possible null pointer dereference in affs_rename()
From: Florin Malita <fmalita@xxxxxxxxx>


If affs_bread() fails, the exit path calls mark_buffer_dirty_inode() with a
NULL argument.

Coverity CID: 312.

Signed-off-by: Florin Malita <fmalita@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/affs/namei.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN fs/affs/namei.c~affs-possible-null-pointer-dereference-in-affs_rename fs/affs/namei.c
--- devel/fs/affs/namei.c~affs-possible-null-pointer-dereference-in-affs_rename	2006-05-25 18:44:06.000000000 -0700
+++ devel-akpm/fs/affs/namei.c	2006-05-25 18:44:06.000000000 -0700
@@ -416,10 +416,9 @@ affs_rename(struct inode *old_dir, struc
 			return retval;
 	}
 
-	retval = -EIO;
 	bh = affs_bread(sb, old_dentry->d_inode->i_ino);
 	if (!bh)
-		goto done;
+		return -EIO;
 
 	/* Remove header from its parent directory. */
 	affs_lock_dir(old_dir);
_

Patches currently in -mm which might be from fmalita@xxxxxxxxx are

origin.patch
git-mtd.patch
git-netdev-all.patch
irda-missing-allocation-result-check-in-irlap_change_speed.patch
pcmcia-missing-pcmcia_get_socket-result-check.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