diff options
author | Eric W. Biederman <[email protected]> | 2021-10-16 12:47:51 -0500 |
---|---|---|
committer | Eric W. Biederman <[email protected]> | 2021-10-19 11:04:25 -0500 |
commit | 34dc2fd6e6908499b669c7b45320cddf38b332e1 (patch) | |
tree | 5674fdd26d21efd860afc4c571c250cfa511aed0 /tools/perf/util/trace-event-scripting.c | |
parent | 629715adc62b0ad27ab04d0aa73a71927f886910 (diff) |
ucounts: Proper error handling in set_cred_ucounts
Instead of leaking the ucounts in new if alloc_ucounts fails, store
the result of alloc_ucounts into a temporary variable, which is later
assigned to new->ucounts.
Cc: [email protected]
Fixes: 905ae01c4ae2 ("Add a reference to ucounts for each cred")
Link: https://lkml.kernel.org/r/87pms2s0v8.fsf_-_@disp2133
Tested-by: Yu Zhao <[email protected]>
Reviewed-by: Alexey Gladkov <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions