]> xenbits.xensource.com Git - xenclient/kernel.git/commit
cpufreq: add bounds checking to cpufreq_stats.c from upstream
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 11:28:40 +0000 (11:28 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 Dec 2007 11:28:40 +0000 (11:28 +0000)
commite7df8a203ccfc9bc11504af83e19da99e600b2d8
treee140d706d14db48c16493fb695c75e818a157570
parentba2a6fb659cd497264cd6c40291235e87daa1a20
cpufreq: add bounds checking to cpufreq_stats.c from upstream

The cpufreq_stats.c will attempt to use an error return value as
an index to an array, causing the kernel to oops.  Stop that by
doing bounds checking.

This is a backport of upstream code.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
drivers/cpufreq/cpufreq_stats.c