diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_netem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 231cd11aa6e2..a2a95aabf9c2 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -413,10 +413,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch) | |||
413 | if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor)) { | 413 | if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor)) { |
414 | if (!(skb = skb_unshare(skb, GFP_ATOMIC)) || | 414 | if (!(skb = skb_unshare(skb, GFP_ATOMIC)) || |
415 | (skb->ip_summed == CHECKSUM_PARTIAL && | 415 | (skb->ip_summed == CHECKSUM_PARTIAL && |
416 | skb_checksum_help(skb))) { | 416 | skb_checksum_help(skb))) |
417 | sch->qstats.drops++; | 417 | return qdisc_drop(skb, sch); |
418 | return NET_XMIT_DROP; | ||
419 | } | ||
420 | 418 | ||
421 | skb->data[net_random() % skb_headlen(skb)] ^= 1<<(net_random() % 8); | 419 | skb->data[net_random() % skb_headlen(skb)] ^= 1<<(net_random() % 8); |
422 | } | 420 | } |