diff options
author | Paul Blakey <paulb@mellanox.com> | 2018-06-03 09:06:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-04 23:03:37 +0200 |
commit | de9dc650f05f5c427a623797342bb2870ceedd38 (patch) | |
tree | 159c0e1e5ddf831fc2bb7baeea96cfbb89fa4085 /net/sched/cls_flower.c | |
parent | net: skbuff.h: drop unneeded <linux/slab.h> (diff) | |
download | linux-de9dc650f05f5c427a623797342bb2870ceedd38.tar.xz linux-de9dc650f05f5c427a623797342bb2870ceedd38.zip |
cls_flower: Fix missing free of rhashtable
When destroying the instance, destroy the head rhashtable.
Fixes: 05cd271fd61a ("cls_flower: Support multiple masks per priority")
Reported-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/sched/cls_flower.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/cls_flower.c b/net/sched/cls_flower.c index 3786feab0b83..159efd98ee9a 100644 --- a/net/sched/cls_flower.c +++ b/net/sched/cls_flower.c @@ -326,6 +326,8 @@ static void fl_destroy_sleepable(struct work_struct *work) struct cls_fl_head *head = container_of(to_rcu_work(work), struct cls_fl_head, rwork); + + rhashtable_destroy(&head->ht); kfree(head); module_put(THIS_MODULE); } |