diff options
author | Daniel Borkmann <[email protected]> | 2023-07-22 01:33:30 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-07-24 11:42:35 -0700 |
commit | dc644b540a2d2874112706591234be3d3fbf9ef7 (patch) | |
tree | 9521da31b04903ed318babf2e52f7bae5dc532ab | |
parent | 5322a27c0d461ab3938dd513b1672b86ee722da7 (diff) |
tcx: Fix splat in ingress_destroy upon tcx_entry_free
On qdisc destruction, the ingress_destroy() needs to update the correct
entry, that is, tcx_entry_update must NULL the dev->tcx_ingress pointer.
Therefore, fix the typo.
Fixes: e420bed02507 ("bpf: Add fd-based tcx multi-prog infra with link support")
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: [email protected]
Tested-by: [email protected]
Tested-by: [email protected]
Tested-by: Petr Machata <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r-- | net/sched/sch_ingress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_ingress.c b/net/sched/sch_ingress.c index 04e886f6cee4..a463a63192c3 100644 --- a/net/sched/sch_ingress.c +++ b/net/sched/sch_ingress.c @@ -123,7 +123,7 @@ static void ingress_destroy(struct Qdisc *sch) if (entry) { tcx_miniq_set_active(entry, false); if (!tcx_entry_is_active(entry)) { - tcx_entry_update(dev, NULL, false); + tcx_entry_update(dev, NULL, true); tcx_entry_free(entry); } } |