diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-03 20:29:53 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-20 16:08:27 +0100 |
commit | 8975b6c0fdd57e061f4d1040163778ceaf340ad8 (patch) | |
tree | 23e2b750f79b69c6610ecb8061b3aa2d027f9dc8 /net/netlink/genetlink.c | |
parent | ARM: SMP: move CPU number sanity checks to smp_init_cpus() (diff) | |
download | linux-8975b6c0fdd57e061f4d1040163778ceaf340ad8.tar.xz linux-8975b6c0fdd57e061f4d1040163778ceaf340ad8.zip |
ARM: SMP: Clean up ncores sanity checks
scu_get_core_count() never returns zero cores, so we don't need to
check and correct if ncores is zero.
Tegra was missing the check against NR_CPUS, leading to a potential
bitfield overflow if this becomes the case.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'net/netlink/genetlink.c')
0 files changed, 0 insertions, 0 deletions