[PATCH] clk: bcm2835: fix check of error code returned by devm_ioremap_resource()
From: Stephen Boyd <hidden>
Date: 2016-03-16 01:14:17
Also in:
linux-clk
From: Stephen Boyd <hidden>
Date: 2016-03-16 01:14:17
Also in:
linux-clk
On 03/06, Vladimir Zapolskiy wrote:
The change fixes potential oops while accessing iomem on invalid
address, if devm_ioremap_resource() fails due to some reason.
The devm_ioremap_resource() function returns ERR_PTR() and never
returns NULL, which makes useless a following check for NULL.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Fixes: 5e63dcc74b30 ("clk: bcm2835: Add a driver for the auxiliary peripheral clock gates")
---Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project