diff options
author | Peng Fan <peng.fan@nxp.com> | 2019-02-20 16:32:55 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2019-02-24 01:36:53 +0300 |
commit | 2de7852fe9096e92c5f10faa472550a2a7121cea (patch) | |
tree | cde1e86e79d9b743875d9cf9dbb738d3d6a83bfb /arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi | |
parent | a3b22b9f11d9fbc48b0291ea92259a5a810e9438 (diff) | |
download | linux-2de7852fe9096e92c5f10faa472550a2a7121cea.tar.xz |
percpu: use nr_groups as check condition
group_cnt array is defined with NR_CPUS entries, but normally
nr_groups will not reach up to NR_CPUS. So there is no issue
to the current code.
Checking other parts of pcpu_build_alloc_info, use nr_groups as
check condition, so make it consistent to use 'group < nr_groups'
as for loop check. In case we do have nr_groups equals with NR_CPUS,
we could also avoid memory access out of bounds.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi')
0 files changed, 0 insertions, 0 deletions