diff options
| author | Kees Cook <[email protected]> | 2022-10-11 20:01:08 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2022-10-17 20:14:32 +0000 |
| commit | 3219122b8cdd580f0793e803d4e80ecd7384cf17 (patch) | |
| tree | 503d05c2ae868d8e04d3e7aa88bf4dc7d6877b42 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | efi: pstore: Follow convention for the efi-pstore backend name (diff) | |
| download | kernel-3219122b8cdd580f0793e803d4e80ecd7384cf17.tar.gz kernel-3219122b8cdd580f0793e803d4e80ecd7384cf17.zip | |
pstore/ram: Consolidate kfree() paths
There's no reason to keep separate kfree() paths: either all allocations
succeeded, or not. Everything is torn down in the case of failure, so
adjust the callers to reflect this.
Cc: Anton Vorontsov <[email protected]>
Cc: Colin Cross <[email protected]>
Cc: Tony Luck <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Reviewed-and-tested-by: Guilherme G. Piccoli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
