diff options
author | Victor Nogueira <[email protected]> | 2023-07-13 15:05:12 -0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-07-17 07:33:38 +0100 |
commit | e8d3d78c19be0264a5692bed477c303523aead31 (patch) | |
tree | 45f2c467ccc58414bee4fccf43708cd670fd7793 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 9cb36faedeafb9720ac236aeae2ea57091d90a09 (diff) |
net: sched: cls_u32: Undo refcount decrement in case update failed
In the case of an update, when TCA_U32_LINK is set, u32_set_parms will
decrement the refcount of the ht_down (struct tc_u_hnode) pointer
present in the older u32 filter which we are replacing. However, if
u32_replace_hw_knode errors out, the update command fails and that
ht_down pointer continues decremented. To fix that, when
u32_replace_hw_knode fails, check if ht_down's refcount was decremented
and undo the decrement.
Fixes: d34e3e181395 ("net: cls_u32: Add support for skip-sw flag to tc u32 classifier.")
Signed-off-by: Victor Nogueira <[email protected]>
Acked-by: Jamal Hadi Salim <[email protected]>
Reviewed-by: Pedro Tammela <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions