Skip to content

Commit 59c878c

Browse files
nbd168davem330
authored andcommitted
net: bridge: fix multicast-to-unicast with fraglist GSO
Calling skb_copy on a SKB_GSO_FRAGLIST skb is not valid, since it returns an invalid linearized skb. This code only needs to change the ethernet header, so pskb_copy is the right function to call here. Fixes: 6db6f0e ("bridge: multicast to unicast") Signed-off-by: Felix Fietkau <[email protected]> Acked-by: Paolo Abeni <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fb7a0d3 commit 59c878c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bridge/br_forward.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb,
266266
if (skb->dev == p->dev && ether_addr_equal(src, addr))
267267
return;
268268

269-
skb = skb_copy(skb, GFP_ATOMIC);
269+
skb = pskb_copy(skb, GFP_ATOMIC);
270270
if (!skb) {
271271
DEV_STATS_INC(dev, tx_dropped);
272272
return;

0 commit comments

Comments
 (0)