+ affs-possible-null-pointer-dereference-in-affs_rename.patch added to -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 added to the -mm tree.  Its filename is

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

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

------------------------------------------------------
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
--- 25/fs/affs/namei.c~affs-possible-null-pointer-dereference-in-affs_rename	Wed May 24 14:37:42 2006
+++ 25-akpm/fs/affs/namei.c	Wed May 24 14:37:42 2006
@@ -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
affs-possible-null-pointer-dereference-in-affs_rename.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