diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-22 11:28:54 +0900 |
---|---|---|
committer | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2018-01-23 14:37:11 +0000 |
commit | b5d6bc90c9129279d363ccbc02ad11e7b657c0b4 (patch) | |
tree | 8354e4db4267fc376cff69ee6ff2b42fbbebae59 /drivers/spi/spi-loopback-test.c | |
parent | 3b65ca50d24ce33cb92d88840e289135c92b40ed (diff) | |
download | lwn-b5d6bc90c9129279d363ccbc02ad11e7b657c0b4.tar.gz lwn-b5d6bc90c9129279d363ccbc02ad11e7b657c0b4.zip |
PCI: exynos: Fix a potential init_clk_resources NULL pointer dereference
In order to avoid triggering a NULL pointer dereference in
exynos_pcie_probe() a check must be put in place to detect if
the init_clk_resources hook is initialized before calling it.
Add the respective function pointer check in exynos_pcie_probe().
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
[lorenzo.pieralisi@arm.com: rewrote the commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/spi/spi-loopback-test.c')
0 files changed, 0 insertions, 0 deletions