OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d1632b
)
netfilter: use kfree_skb() not kfree()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Sat, 30 Jun 2012 01:48:53 +0000
(
01:48
+0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 1 Jul 2012 00:26:51 +0000
(17:26 -0700)
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>
net/bridge/netfilter/ebt_ulog.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/ebt_ulog.c
b/net/bridge/netfilter/ebt_ulog.c
index
374bdcd
..
1906347
100644
(file)
--- 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;
}