diff options
author | Mike Turquette <mturquette@linaro.org> | 2012-03-26 17:45:36 -0400 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-04-24 19:37:37 -0400 |
commit | 7452b2191cd55fb3fd6ad65344466ddcdbe4676e (patch) | |
tree | 5ce68dcf470dd0de7bac7d354ea7be10e52467d5 /security | |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions