netfilter: use kfree_skb() not kfree()
Subsystems (5)
PATCH 1/1 netfilter: use kfree_skb() not kfree()
This was should be a kfree_skb() here to free the sk_buff pointer.
Signed-off-by Dan Carpenter <[email protected]>
net/bridge/netfilter/ebt_ulog.c +1 -1
@@ -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; }
David Miller
maintainerFrom: Dan Carpenter <[email protected]>
Date: Sat, 30 Jun 2012 14:48:53 +0300
Quoted 3 lines
This was should be a
kfree_skb()here to free thesk_buffpointer.Signed-off-by Dan Carpenter <[email protected]>
My bad, applied, thanks Dan.