diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-30 01:48:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-30 17:26:51 -0700 |
commit | f7eadafb13daa0efcbd9d5fe5e53dcaee21208e8 (patch) | |
tree | 00a5139c5a8629151039e6a0e23d7075d8b490cc /net/bridge | |
parent | 0d1632b46ad76cde92085aa1ed422e9329443082 (diff) | |
download | linux-3.10-f7eadafb13daa0efcbd9d5fe5e53dcaee21208e8.tar.gz linux-3.10-f7eadafb13daa0efcbd9d5fe5e53dcaee21208e8.tar.bz2 linux-3.10-f7eadafb13daa0efcbd9d5fe5e53dcaee21208e8.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebt_ulog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c index 374bdcd7703..19063473c71 100644 --- a/net/bridge/netfilter/ebt_ulog.c +++ b/net/bridge/netfilter/ebt_ulog.c @@ -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; } |