Searched hist:a802ea96454570f3c526dd9d7ad8c706e570444d (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/cpuidle/governors/ |
H A D | menu.c | diff a802ea96454570f3c526dd9d7ad8c706e570444d Mon May 04 15:53:28 CDT 2015 Rafael J. Wysocki <rafael.j.wysocki@intel.com> cpuidle: Check the sign of index in cpuidle_reflect()
Avoid calling the governor's ->reflect method if the state index passed to cpuidle_reflect() is negative.
This allows the analogous check to be dropped from menu_reflect(), so do that too, and ensures that arbitrary error codes can be passed to cpuidle_reflect() as the index with no adverse consequences.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle.c | diff a802ea96454570f3c526dd9d7ad8c706e570444d Mon May 04 15:53:28 CDT 2015 Rafael J. Wysocki <rafael.j.wysocki@intel.com> cpuidle: Check the sign of index in cpuidle_reflect()
Avoid calling the governor's ->reflect method if the state index passed to cpuidle_reflect() is negative.
This allows the analogous check to be dropped from menu_reflect(), so do that too, and ensures that arbitrary error codes can be passed to cpuidle_reflect() as the index with no adverse consequences.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
|