Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
percpu: initialize best_upa variable
Tom reported this finding from clang 10's static analysis [1]. Due to the way the code is written, it will always see a successful loop iteration. Instead of setting an initial value, check that it was set instead with BUG_ON() because 0 units per allocation is bogus. [1] https://lore.kernel.org/lkml/[email protected]/ Reported-by: Tom Rix <[email protected]> Signed-off-by: Dennis Zhou <[email protected]>
- Loading branch information