diff options
author | Jakub Kicinski <[email protected]> | 2022-08-16 09:19:39 -0700 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-08-18 10:20:48 -0700 |
commit | 249801360db3dec4f73768c502192020bfddeacc (patch) | |
tree | 12f45371df138671e0ef5f3f6b0fdb3692b4dbe2 /scripts/gdb/linux/proc.py | |
parent | 5c23d6b717e4e956376f3852b90f58e262946b50 (diff) |
net: genl: fix error path memory leak in policy dumping
If construction of the array of policies fails when recording
non-first policy we need to unwind.
netlink_policy_dump_add_policy() itself also needs fixing as
it currently gives up on error without recording the allocated
pointer in the pstate pointer.
Reported-by: [email protected]
Fixes: 50a896cf2d6f ("genetlink: properly support per-op policy dumping")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions