summaryrefslogtreecommitdiff
path: root/drivers/clk/imx
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2018-06-29 17:38:14 +0300
committerStephen Boyd <sboyd@kernel.org>2018-07-09 02:56:24 +0300
commitf7b3182232c82bb9769e2d5471d702bae2972d2b (patch)
tree67cc3cbb61c7aa8798db2e9d47331a6bf0cabbbe /drivers/clk/imx
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
downloadlinux-f7b3182232c82bb9769e2d5471d702bae2972d2b.tar.xz
clk: tegra: bpmp: Don't crash when a clock fails to register
When registering clocks, we just skip any that fail to register (leaving a NULL hole in the clock table). However, our of_xlate function still tries to dereference each entry while looking for the clock with the requested id, causing a crash if any clocks failed to register. Add a check to of_xlate to skip any NULL clocks. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/imx')
0 files changed, 0 insertions, 0 deletions