diff options
author | libin <[email protected]> | 2013-04-08 14:39:12 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2013-04-08 13:23:03 +0200 |
commit | fd9b86d37a600488dbd80fe60cca46b822bff1cd (patch) | |
tree | 4ce6afb8ec12c2d411546a8c70aeeb73c20e8e53 /lib/cpu-notifier-error-inject.c | |
parent | a1cbcaa9ea87b87a96b9fc465951dcf36e459ca2 (diff) |
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 <[email protected]>
Cc: <[email protected]>
Cc: <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions