]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:02:24 +0000 (12:02 +0100)
commit3a2b4c51e406b5e29a0dbbdd1276f59b55c2a709
treee5146f207824a37eb55411eae2dd922d07a1225d
parent3fa6ce7f02755aace16f899cbfce28866c833914
net: sched: atm: dont intepret cls results when asked to drop

[ Upstream commit 7a778acdf6f6d833ecbce52c473f25def2fb68c1 ]

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