Skip to content
Commit 0ca4da24 authored by Adrian Hunter's avatar Adrian Hunter Committed by Peter Zijlstra
Browse files

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: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240624201101.60186-8-adrian.hunter@intel.com
parent 43deb76b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment