Skip to content

Commit

Permalink
net: drop the packet when fails to do software segmentation or header…
Browse files Browse the repository at this point in the history
… check

Commit cecda69 ("net: keep original skb
which only needs header checking during software GSO") keeps the original
skb for packets that only needs header check, but it doesn't drop the
packet if software segmentation or header check were failed.

Fixes cecda69 ("net: keep original skb which only needs header checking during software GSO")
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jason Wang authored and David S. Miller committed Dec 24, 2014
1 parent 2dc49d1 commit af6dabc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ static struct sk_buff *validate_xmit_skb(struct sk_buff *skb, struct net_device

segs = skb_gso_segment(skb, features);
if (IS_ERR(segs)) {
segs = NULL;
goto out_kfree_skb;
} else if (segs) {
consume_skb(skb);
skb = segs;
Expand Down

0 comments on commit af6dabc

Please sign in to comment.