From: libin Date: Mon, 8 Apr 2013 06:39:12 +0000 (+0800) Subject: sched/debug: Fix sd->*_idx limit range avoiding overflow X-Git-Tag: v3.9-rc7~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9b86d37a600488dbd80fe60cca46b822bff1cd;p=pandora-kernel.git sched/debug: Fix sd->*_idx limit range avoiding overflow Commit 201c373e8e ("sched/debug: Limit sd->*_idx range on sysctl") was an incomplete bug fix. This patch fixes sd->*_idx limit range to [0 ~ CPU_LOAD_IDX_MAX-1] avoiding array overflow caused by setting sd->*_idx to CPU_LOAD_IDX_MAX on sysctl. Signed-off-by: Libin Cc: Cc: Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/51626610.2040607@huawei.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed