net: drop the packet when fails to do software segmentation or header check
authorJason Wang <jasowang@redhat.com>
Fri, 19 Dec 2014 03:09:13 +0000 (11:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Dec 2014 04:12:11 +0000 (23:12 -0500)
commitaf6dabc9c70ae3f307685b1f32f52d60b1bf0527
tree8cc35a3385ef42c3a29d395d65abd3e68bf052ba
parent2dc49d1680b534877fd20cce52557ea542bb06b6
net: drop the packet when fails to do software segmentation or header check

Commit cecda693a969816bac5e470e1d9c9c0ef5567bca ("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 cecda693a9 ("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>
net/core/dev.c