diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-12-15 12:40:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-15 21:43:12 +0100 |
commit | b59e6979a86384e68b0ab6ffeab11f0034fba82d (patch) | |
tree | 80092ec432ee3fa8cf5689cd9e01e5bd6cee38cc /include/xen/tmem.h | |
parent | net: sched: fix clsact init error path (diff) | |
download | linux-b59e6979a86384e68b0ab6ffeab11f0034fba82d.tar.xz linux-b59e6979a86384e68b0ab6ffeab11f0034fba82d.zip |
net: sched: fix static key imbalance in case of ingress/clsact_init error
Move static key increments to the beginning of the init function
so they pair 1:1 with decrements in ingress/clsact_destroy,
which is called in case ingress/clsact_init fails.
Fixes: 6529eaba33f0 ("net: sched: introduce tcf block infractructure")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/xen/tmem.h')
0 files changed, 0 insertions, 0 deletions