]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blobdiff - kernel/sched/core.c
sched/debug: Fix sd->*_idx limit range avoiding overflow
[android-sdk/kernel-video.git] / kernel / sched / core.c
index 32ab413d312d02f97a48ba985d984745320e94fe..5e2f7c352083f267ad721548bbaa54773f7712f5 100644 (file)
@@ -4950,7 +4950,7 @@ static void sd_free_ctl_entry(struct ctl_table **tablep)
 }
 
 static int min_load_idx = 0;
-static int max_load_idx = CPU_LOAD_IDX_MAX;
+static int max_load_idx = CPU_LOAD_IDX_MAX-1;
 
 static void
 set_table_entry(struct ctl_table *entry,