]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_matchall: cleanup flow_action before deallocating
authorVlad Buslov <vladbu@mellanox.com>
Thu, 29 Aug 2019 16:15:16 +0000 (19:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 22:12:05 +0000 (15:12 -0700)
commite5cb6470b9c6ce2ae402df9fd58d8a4d64b90611
treee14fcc5b7e75d34e440d1b39dcaea6d7f71480d6
parent0755cbbae5fc8a0028e10a845f422ad30400899c
net: sched: cls_matchall: cleanup flow_action before deallocating

Recent rtnl lock removal patch changed flow_action infra to require proper
cleanup besides simple memory deallocation. However, matchall classifier
was not updated to call tc_cleanup_flow_action(). Add proper cleanup to
mall_replace_hw_filter() and mall_reoffload().

Fixes: 7c3f799e0012 ("net: sched: take reference to action dev before calling offloads")
Reported-by: Ido Schimmel <idosch@mellanox.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_matchall.c