From: Tejun Heo Date: Tue, 29 Sep 2009 00:17:56 +0000 (+0900) Subject: percpu: fix unit_map[] verification in pcpu_setup_first_chunk() X-Git-Tag: v2.6.32-rc3~65^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffe0d5a575459ffe664b0762130b557f826fcace;p=pandora-kernel.git 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 Reported-and-tested-by: Tony Vroon --- Reading git-diff-tree failed