commit | 7452b2191cd55fb3fd6ad65344466ddcdbe4676e | [log] [tgz] |
---|---|---|
author | Mike Turquette <mturquette@linaro.org> | Mon Mar 26 14:45:36 2012 -0700 |
committer | Mike Turquette <mturquette@linaro.org> | Tue Apr 24 16:37:37 2012 -0700 |
tree | 5ce68dcf470dd0de7bac7d354ea7be10e52467d5 | |
parent | 70d347e6cd0d2a7ecc023b44ef721bc2c2a38f22 [diff] |
clk: core: clk_calc_new_rates handles NULL parents It is possible to call clk_set_rate on a clock with a NULL parent. One such example is an adjustable-rate root clock. Ensure that clk_calc_new_rates does not dereference parent without checking first and also handle the corner cases gracefully. Reported-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>