]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
x86/cpuidle: prevent out of bounds array access
authorJan Beulich <jbeulich@suse.com>
Fri, 22 May 2015 15:34:51 +0000 (17:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 May 2015 15:34:51 +0000 (17:34 +0200)
commit1cfb320b88588bb42e95eb49fba69358802b771e
tree0f37b8a87ef82eb460b18c46d10624e4e2ba10e8
parente37ac1386f80c3af56452c8e442a4e1adbcf9b59
x86/cpuidle: prevent out of bounds array access

... resulting from fbeef5570c ("x86/cpuidle: get accurate C0 value with
xenpm tool"). For consistency also no longer account an unknown state
to C0 in pmstat_get_cx_stat().

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citirx.com>
xen/arch/x86/acpi/cpu_idle.c