diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-11-19 21:32:06 +0300 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2015-11-24 05:49:18 +0300 |
commit | 6575a9c69a211ac1cf454f9c76be54f7a5fae9fe (patch) | |
tree | 8a4cd82a6df5e6362152c1438ce5dbc6c79383c9 /drivers/net/wireless/zd1211rw/zd_mac.h | |
parent | 90069ad1b602d05740ed0fc5f72f09a616ceddd0 (diff) | |
download | linux-6575a9c69a211ac1cf454f9c76be54f7a5fae9fe.tar.xz |
drivers: sh: clk: Avoid crashes when passing NULL clocks
Several clock API functions handle NULL clocks when the Common Clock
Framework is used, while their legacy SH counterparts don't, and would
just crash when a NULL clock is passed.
Add NULL checks to clk_get_rate(), clk_set_rate(), clk_get_parent(), and
clk_round_rate(), to avoid different behavior in drivers shared between
legacy and CCF-based platforms.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_mac.h')
0 files changed, 0 insertions, 0 deletions