mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
tipc: fix a double kfree_skb()
[ Upstream commitacb4a33e98] tipc_udp_xmit() drops the packet on error, there is no need to drop it again. Fixes:ef20cd4dd1("tipc: introduce UDP replicast") Reported-and-tested-by: syzbot+eae585ba2cc2752d3704@syzkaller.appspotmail.com Cc: Ying Xue <ying.xue@windriver.com> Cc: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3bade4b76a
commit
3009452fb2
@@ -243,10 +243,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:
|
||||
|
||||
Reference in New Issue
Block a user