summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2012-03-27 01:45:36 +0400
committerMike Turquette <mturquette@linaro.org>2012-04-25 03:37:37 +0400
commit7452b2191cd55fb3fd6ad65344466ddcdbe4676e (patch)
tree5ce68dcf470dd0de7bac7d354ea7be10e52467d5 /net/lapb/lapb_timer.c
parent70d347e6cd0d2a7ecc023b44ef721bc2c2a38f22 (diff)
downloadlinux-7452b2191cd55fb3fd6ad65344466ddcdbe4676e.tar.xz
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions