]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: sched: atm: dont intepret cls results when asked to drop
authorJamal Hadi Salim <jhs@mojatatu.com>
Sun, 1 Jan 2023 21:57:43 +0000 (16:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2023 13:32:43 +0000 (13:32 +0000)
commita2965c7be0522eaa18808684b7b82b248515511b
treea88afda157a06b9bb015fb7f415c4754c6be8758
parent91e2286160edd29d3fea8efff2dcda7df321878d
net: sched: atm: dont intepret cls results when asked to drop

If asked to drop a packet via TC_ACT_SHOT it is unsafe to assume
res.class contains a valid pointer
Fixes: b0188d4dbe5f ("[NET_SCHED]: sch_atm: Lindent")
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_atm.c