diff options
author | Eric Dumazet <[email protected]> | 2021-12-07 11:32:03 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-12-09 11:51:45 -0800 |
commit | 4177e4960594f7e6ae2ae787667b1788178cf32c (patch) | |
tree | 141e5833f6344cde8782b002a085184a8d91ae92 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 5092fb44ba11899a957d82284acad3ccaf8c7306 (diff) |
xfrm: use net device refcount tracker helpers
xfrm4_fill_dst() and xfrm6_fill_dst() build dst,
getting a device reference that will likely be released
by standard dst_release() code.
We have to track these references or risk a warning if
CONFIG_NET_DEV_REFCNT_TRACKER=y
Note to XFRM maintainers :
Error path in xfrm6_fill_dst() releases the reference,
but does not clear xdst->u.dst.dev, so I wonder
if this could lead to double dev_put() in some cases,
where a dst_release() _is_ called by the callers in their
error path.
This extra dev_put() was added in commit 84c4a9dfbf430 ("xfrm6:
release dev before returning error")
Fixes: 9038c320001d ("net: dst: add net device refcount tracking to dst_entry")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Cong Wang <[email protected]>
Acked-by: Steffen Klassert <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions