+ possible-dereference-in.patch added to -mm tree

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

 



The patch titled

     Possible NULL dereference in drivers/infiniband/hw/amso1100/c2_cm.c

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

     possible-dereference-in.patch

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

------------------------------------------------------
Subject: Possible NULL dereference in drivers/infiniband/hw/amso1100/c2_cm.c
From: Eric Sesterhenn <snakebyte@xxxxxx>

Another NULL dereference spotted by the coverity checker (cid #1395) In
case we cant alloc the vq_req, we goto bail1, where we call
vq_req_free(c2dev, vq_req); which then dereferences vq_req().

Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx>
Cc: Roland Dreier <rolandd@xxxxxxxxx>
Cc: Tom Tucker <tom@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/infiniband/hw/amso1100/c2_cm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/infiniband/hw/amso1100/c2_cm.c~possible-dereference-in drivers/infiniband/hw/amso1100/c2_cm.c
--- a/drivers/infiniband/hw/amso1100/c2_cm.c~possible-dereference-in
+++ a/drivers/infiniband/hw/amso1100/c2_cm.c
@@ -302,7 +302,7 @@ int c2_llp_accept(struct iw_cm_id *cm_id
 	vq_req = vq_req_alloc(c2dev);
 	if (!vq_req) {
 		err = -ENOMEM;
-		goto bail1;
+		goto bail0;
 	}
 	vq_req->qp = qp;
 	vq_req->cm_id = cm_id;
_

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

git-dvb.patch
git-gfs2.patch
possible-dereference-in.patch
git-intelfb.patch
git-netdev-all.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
remove-unnecessary-check-in.patch
git-scsi-misc.patch
remove-unnecessary-check-in-drivers-scsi-sgc.patch
uninitialized-variable-in-drivers-net-wan-syncpppc.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