Commit cfed27c6 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NET]: Fix two bogus kfree(skb).

parent 1d7ed419
...@@ -64,7 +64,7 @@ int br_handle_frame_finish(struct sk_buff *skb) ...@@ -64,7 +64,7 @@ int br_handle_frame_finish(struct sk_buff *skb)
smp_read_barrier_depends(); smp_read_barrier_depends();
if (p == NULL || p->state == BR_STATE_DISABLED) { if (p == NULL || p->state == BR_STATE_DISABLED) {
kfree(skb); kfree_skb(skb);
goto out; goto out;
} }
......
...@@ -55,7 +55,7 @@ static struct sk_buff *dnrmg_build_message(struct sk_buff *rt_skb, int *errp) ...@@ -55,7 +55,7 @@ static struct sk_buff *dnrmg_build_message(struct sk_buff *rt_skb, int *errp)
nlmsg_failure: nlmsg_failure:
if (skb) if (skb)
kfree(skb); kfree_skb(skb);
*errp = -ENOMEM; *errp = -ENOMEM;
if (net_ratelimit()) if (net_ratelimit())
printk(KERN_ERR "dn_rtmsg: error creating netlink message\n"); printk(KERN_ERR "dn_rtmsg: error creating netlink message\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment