Skip to contentSkip to conversation

netfilter: use kfree_skb() not kfree()

PATCH In review Dan Carpenter 2 participants 2 messages Jun 30, 2012 – Jul 1, 2012

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

PATCH 1/1 netfilter: use kfree_skb() not kfree()

This was should be a kfree_skb() here to free the sk_buff pointer.

net/bridge/netfilter/ebt_ulog.c +1 -1
index 1bd1732..dfbb019 100644
@@ -156,7 +156,7 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,
 	nlh = nlmsg_put(ub->skb, 0, ub->qlen, 0,
 			size - NLMSG_ALIGN(sizeof(*nlh)), 0);
 	if (!nlh) {
-		kfree(ub->skb);
+		kfree_skb(ub->skb);
 		ub->skb = NULL;
 		goto unlock;
 	}