summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorDeepanshu Kartikey <kartikey406@gmail.com>2026-04-14 05:09:47 +0300
committerSteffen Klassert <steffen.klassert@secunet.com>2026-04-29 10:36:05 +0300
commita77d172177f3754ebd70123c78c75a6efa9eec2a (patch)
tree4aaf3cb0784ccbd0f6d4f7717aa3248bbac4b00d /tools/lib/python/kdoc
parent790ead9394860e7d70c5e0e50a35b243e909a618 (diff)
downloadlinux-a77d172177f3754ebd70123c78c75a6efa9eec2a.tar.xz
xfrm: cleanup error path in xfrm_add_policy()
Replace the open-coded manual cleanup in the error path of xfrm_add_policy() with xfrm_policy_destroy(), which already handles all the necessary cleanup internally. This is consistent with how xfrm_policy_construct() handles its own error paths. The walk.dead flag must be set before calling xfrm_policy_destroy() as required by BUG_ON(!policy->walk.dead). Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions