aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2017-09-06 13:14:19 +0200
committerDavid S. Miller <[email protected]>2017-09-07 19:17:20 -0700
commit80532384af4ccb6d6cc965fa9232aaa2c456362c (patch)
tree86a70c65cfa532a6653dfc24e8c54bcd0789d14f /tools/perf/util/scripting-engines/trace-event-python.c
parent0f2be423f1fa70df4e3b91224bcdded76675308c (diff)
net: sched: fix memleak for chain zero
There's a memleak happening for chain 0. The thing is, chain 0 needs to be always present, not created on demand. Therefore tcf_block_get upon creation of block calls the tcf_chain_create function directly. The chain is created with refcnt == 1, which is not correct in this case and causes the memleak. So move the refcnt increment into tcf_chain_get function even for the case when chain needs to be created. Reported-by: Jakub Kicinski <[email protected]> Fixes: 5bc1701881e3 ("net: sched: introduce multichain support for filters") Signed-off-by: Jiri Pirko <[email protected]> Tested-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions