]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/sched: act_mirred: Fix return code in early mirred redirect error paths
authorVictor Nogueira <victor@mojatatu.com>
Mon, 25 May 2026 12:25:54 +0000 (08:25 -0400)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 28 May 2026 10:26:36 +0000 (12:26 +0200)
commite80ad525fc7e8c933ad78478c5dda286cfd55c60
tree1859b77b938fb2f4b84405eda68d39e6c6e51ba3
parenta005fa5d7502eefec7ee6e1c01adadc06de2f9ad
net/sched: act_mirred: Fix return code in early mirred redirect error paths

Since retval is set as TC_ACT_STOLEN in the mirred redirect case, returning
retval in cases where redirect failed will make the callers not register
the skb as being dropped.

Fix this by returning TC_ACT_SHOT instead in such scenarios.

Fixes: 16085e48cb48 ("net/sched: act_mirred: Create function tcf_mirred_to_dev and improve readability")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260413082027.2244884-1-hxzene%40gmail.com
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Link: https://patch.msgid.link/20260525122556.973584-8-jhs@mojatatu.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/act_mirred.c