mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
bde6311569
On uniprocessor builds, for_each_cpu(cpu, mask) will assume 'mask'
always contains exactly one CPU, and ignore the actual mask contents.
This causes the loop to run, even when it shouldn't on an empty mask,
and tries to access an uninitialised pointer.
Fix this by wrapping the loop in a cpumask_empty() check, to ensure it
will not run on uniprocessor builds if the CPU mask is empty.
Fixes:
|
||
---|---|---|
.. | ||
base-files | ||
dts-5.10 | ||
files/firmware/rtl838x_phy | ||
files-5.10 | ||
image | ||
patches-5.10 | ||
profiles | ||
rtl838x | ||
rtl839x | ||
rtl930x | ||
rtl931x | ||
Makefile |