Files
linux-apfs/drivers/clk
Boris Brezillon 03bc10ab5b clk: check ->determine/round_rate() return value in clk_calc_new_rates
->determine_rate() and ->round_rate() can return the closest rate to the
requested one or an error code.
clk_calc_new_rates is assuming these functions can't return a negative
value, which leads to a undefined behavior when the clk implementation
returns such an error code.
Fix this by returning NULL in case ->determine_rate() or ->round_rate()
returned an error code.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
2015-04-12 21:09:49 -07:00
..
2015-02-02 14:23:42 -08:00
2015-02-02 14:23:42 -08:00
2015-04-01 10:59:27 -07:00
2015-01-20 10:10:51 -08:00
2014-07-28 23:30:46 -07:00
2015-04-01 10:59:27 -07:00
2015-04-10 14:44:43 -07:00
2014-05-27 18:29:04 -07:00
2015-04-10 14:44:43 -07:00
2015-04-10 14:44:43 -07:00