aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorMike Turquette <[email protected]>2012-03-26 14:45:36 -0700
committerMike Turquette <[email protected]>2012-04-24 16:37:37 -0700
commit7452b2191cd55fb3fd6ad65344466ddcdbe4676e (patch)
tree5ce68dcf470dd0de7bac7d354ea7be10e52467d5 /lib/mpi/mpi-add.c
parent70d347e6cd0d2a7ecc023b44ef721bc2c2a38f22 (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 <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions