projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ef70e
)
tipc: fix a double kfree_skb()
author
Cong Wang
<
[email protected]
>
Mon, 10 Dec 2018 20:45:45 +0000
(12:45 -0800)
committer
David S. Miller
<
[email protected]
>
Fri, 14 Dec 2018 21:23:44 +0000
(13:23 -0800)
tipc_udp_xmit() drops the packet on error, there is no
need to drop it again.
Fixes: ef20cd4dd163 ("tipc: introduce UDP replicast")
Reported-and-tested-by:
[email protected]
Cc: Ying Xue <
[email protected]
>
Cc: Jon Maloy <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/tipc/udp_media.c
patch
|
blob
|
history
diff --git
a/net/tipc/udp_media.c
b/net/tipc/udp_media.c
index 10dc59ce9c8221abbe0edce624d59bd0cf758d69..1b1ba1310ea7181f83fafbd97a3f207558d933b7 100644
(file)
--- a/
net/tipc/udp_media.c
+++ b/
net/tipc/udp_media.c
@@
-245,10
+245,8
@@
static int tipc_udp_send_msg(struct net *net, struct sk_buff *skb,
}
err = tipc_udp_xmit(net, _skb, ub, src, &rcast->addr);
- if (err) {
- kfree_skb(_skb);
+ if (err)
goto out;
- }
}
err = 0;
out: