Skip to contentSkip to conversation

: Fix typo causing wrong skb to be freed

NET Applied Thomas Graf 2 participants 2 messages Aug 31, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

A typo introduced by myself which leads to freeing the skb containing the netlink message when it should free the newly allocated skb for the reply.

net/core/rtnetlink.c +1 -1
Index: net-2.6.19/net/core/rtnetlink.c
===================================================================
@@ -596,7 +596,7 @@
 	err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK,
 			       NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0);
 	if (err <= 0) {
-		kfree_skb(skb);
+		kfree_skb(nskb);
 		goto errout;
 	}
 
maintainer Applied
#1 lore raw

From: Thomas Graf <[email protected]>
Date: Thu, 31 Aug 2006 23:26:51 +0200

Quoted 5 lines

A typo introduced by myself which leads to freeing the skb containing the netlink message when it should free the newly allocated skb for the reply.

Applied, thanks Thomas.