diff options
author | Tejun Heo <tj@kernel.org> | 2009-09-29 09:17:56 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-09-29 09:17:56 +0900 |
commit | ffe0d5a575459ffe664b0762130b557f826fcace (patch) | |
tree | af581934a717c510a2c6897ca4ed7fcefd440578 /block | |
parent | 17d857be649a21ca90008c6dc425d849fa83db5c (diff) | |
download | linux-3.10-ffe0d5a575459ffe664b0762130b557f826fcace.tar.gz linux-3.10-ffe0d5a575459ffe664b0762130b557f826fcace.tar.bz2 linux-3.10-ffe0d5a575459ffe664b0762130b557f826fcace.zip |
percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
pcpu_setup_first_chunk() incorrectly used NR_CPUS as the impossible
unit number while unit number can equal and go over NR_CPUS with
sparse unit map. This triggers BUG_ON() spuriously on machines which
have non-power-of-two number of cpus. Use UINT_MAX instead.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-and-tested-by: Tony Vroon <tony@linx.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions