lkml.org 
[lkml]   [2009]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
    Tony Vroon wrote:
    > On Tue, 2009-09-29 at 01:19 +0900, Tejun Heo wrote:
    >> 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-by: Tony Vroon <tony@linx.net>
    > Tested-by: Tony Vroon <tony@linx.net>
    >
    >> Erghh... stupid mistake. This should fix it. Can you please verify?
    >
    > Confirmed fixed. Thank you Tejun.

    Thank you. Will push out later today.

    --
    tejun


    \
     
     \ /
      Last update: 2009-09-29 02:19    [W:0.025 / U:30.924 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site