diff options
author | Adrian Hunter <[email protected]> | 2024-06-24 23:11:01 +0300 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2024-07-04 16:00:23 +0200 |
commit | 0ca4da2412da05fb9dd0b5d90dcc8026219f0f29 (patch) | |
tree | e00e70ea550c741ea37fb45bfa608a39ef6404e0 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 43deb76b19663a96ec2189d8f4eb9a9dc2d7623f (diff) |
perf: Make rb_alloc_aux() return an error immediately if nr_pages <= 0
rb_alloc_aux() should not be called with nr_pages <= 0. Make it more robust
and readable by returning an error immediately in that case.
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions