+ irda-missing-allocation-result-check-in-irlap_change_speed.patch added to -mm tree

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

 



The patch titled

     irda: missing allocation result check in irlap_change_speed()

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

     irda-missing-allocation-result-check-in-irlap_change_speed.patch

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

------------------------------------------------------
Subject: irda: missing allocation result check in irlap_change_speed()
From: Florin Malita <fmalita@xxxxxxxxx>


The skb allocation may fail, which can result in a NULL pointer dereference
in irlap_queue_xmit().

Coverity CID: 434.

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

 net/irda/irlap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN net/irda/irlap.c~irda-missing-allocation-result-check-in-irlap_change_speed net/irda/irlap.c
--- devel/net/irda/irlap.c~irda-missing-allocation-result-check-in-irlap_change_speed	2006-05-24 17:39:54.000000000 -0700
+++ devel-akpm/net/irda/irlap.c	2006-05-24 17:39:54.000000000 -0700
@@ -884,7 +884,8 @@ static void irlap_change_speed(struct ir
 	if (now) {
 		/* Send down empty frame to trigger speed change */
 		skb = dev_alloc_skb(0);
-		irlap_queue_xmit(self, skb);
+		if (skb)
+			irlap_queue_xmit(self, skb);
 	}
 }
 
_

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

origin.patch
affs-possible-null-pointer-dereference-in-affs_rename.patch
git-mtd.patch
git-netdev-all.patch
irda-missing-allocation-result-check-in-irlap_change_speed.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