aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2021-12-05 11:28:22 -0800
committerJakub Kicinski <[email protected]>2021-12-06 16:56:32 -0800
commit4dbb0dad8e63fcd0b5a117c2861d2abe7ff5f186 (patch)
tree59be9e2128d788c38e5188e0d9a5a076ed0ed2c0 /scripts/clang-tools/gen_compile_commands.py
parentdde91ccfa25fd58f64c397d91b81a4b393100ffa (diff)
devlink: fix netns refcount leak in devlink_nl_cmd_reload()
While preparing my patch series adding netns refcount tracking, I spotted bugs in devlink_nl_cmd_reload() Some error paths forgot to release a refcount on a netns. To fix this, we can reduce the scope of get_net()/put_net() section around the call to devlink_reload(). Fixes: ccdf07219da6 ("devlink: Add reload action option to devlink reload command") Fixes: dc64cc7c6310 ("devlink: Add devlink reload limit option") Signed-off-by: Eric Dumazet <[email protected]> Cc: Moshe Shemesh <[email protected]> Cc: Jacob Keller <[email protected]> Cc: Jiri Pirko <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions