diff options
author | Eric Dumazet <[email protected]> | 2023-02-10 15:26:05 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-02-13 09:51:59 +0000 |
commit | 4fab64126891d413f207dacd5762a839b3470315 (patch) | |
tree | eebe29982fa76498709eacf4c22ac0808d5bbdb2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | cafc3662ee3fe29a0027e0a947e6c6493cccaf60 (diff) |
net/sched: fix error recovery in qdisc_create()
If TCA_STAB attribute is malformed, qdisc_get_stab() returns
an error, and we end up calling ops->destroy() while ops->init()
has not been called yet.
While we are at it, call qdisc_put_stab() after ops->destroy().
Fixes: 1f62879e3632 ("net/sched: make stab available before ops->init() call")
Reported-by: [email protected]
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Vladimir Oltean <[email protected]>
Cc: Kurt Kanzenbach <[email protected]>
Reviewed-by: Vladimir Oltean <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions