]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net_sched: netem: do not call qdisc_drop() with a NULL skb
authorEric Dumazet <edumazet@google.com>
Tue, 28 Jun 2016 08:30:08 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 12:02:24 +0000 (08:02 -0400)
commit8a6e9c670341db1ee913e3888cb44a08f18e7489
treea4a4a86b0f7c5e9df8b6e50197b2f62496a80ffe
parentc973f24d370c919d357e45e9c6ca69a0717d81b7
net_sched: netem: do not call qdisc_drop() with a NULL skb

If skb_unshare() fails, we call qdisc_drop() with a NULL skb, which
is no longer supported.

Fixes: 520ac30f4551 ("net_sched: drop packets after root qdisc lock is released")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_netem.c