- possible-null-dereference-in-net-core-rtnetlinkc.patch removed from -mm tree

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

 



The patch titled

     Possible NULL dereference in net/core/rtnetlink.c

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

     possible-null-dereference-in-net-core-rtnetlinkc.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Possible NULL dereference in net/core/rtnetlink.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

Another possible NULL dereference spotted by coverity (#cid 1390).  if the
nlmsg_parse() call fails, we goto errout, where we call dev_put(), with dev
still initialized to NULL.

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: jamal <hadi@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/core/rtnetlink.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN net/core/rtnetlink.c~possible-null-dereference-in-net-core-rtnetlinkc net/core/rtnetlink.c
--- a/net/core/rtnetlink.c~possible-null-dereference-in-net-core-rtnetlinkc
+++ a/net/core/rtnetlink.c
@@ -562,7 +562,7 @@ static int rtnl_getlink(struct sk_buff *
 
 	err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy);
 	if (err < 0)
-		goto errout;
+		return err;
 
 	ifm = nlmsg_data(nlh);
 	if (ifm->ifi_index >= 0) {
_

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

origin.patch
git-arm.patch
git-dvb.patch
git-gfs2.patch
possible-dereference-in.patch
git-intelfb.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
git-net.patch
off-by-one-in-arch-ppc-platforms-mpc8.patch
remove-unnecessary-check-in.patch
git-scsi-misc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
overrun-in-drivers-scsi-scsic.patch
uninitialized-variable-in-drivers-net-wan-syncpppc.patch
off-by-one-in-drivers-char-mwave-mwaveddc.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