diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2019-02-21 14:45:51 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-02-22 00:32:50 +0300 |
commit | 5f0b6216ea381b43c0dff88702d6cc5673d63922 (patch) | |
tree | b8153a99e0b8d857878bd92c20258e4e7d272a1e /drivers/pinctrl/pinconf.h | |
parent | 3144bedfcaad10f9a8fed1fabdd897ba08bbab2d (diff) | |
download | linux-5f0b6216ea381b43c0dff88702d6cc5673d63922.tar.xz |
clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure
During initialization of subdevices if platform_device_alloc() failed,
returned NULL pointer will be later dereferenced. Add proper error
paths to exynos5_clk_register_subcmu(). The return value of this
function is still ignored because at this stage of init there is nothing
we can do.
Fixes: b06a532bf1fa ("clk: samsung: Add Exynos5 sub-CMU clock driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/pinctrl/pinconf.h')
0 files changed, 0 insertions, 0 deletions