]> Git Repo - linux.git/commit - drivers/clk/bcm/clk-bcm2835-aux.c
clk: bcm2835: fix check of error code returned by devm_ioremap_resource()
authorVladimir Zapolskiy <[email protected]>
Sun, 6 Mar 2016 01:21:35 +0000 (03:21 +0200)
committerStephen Boyd <[email protected]>
Wed, 16 Mar 2016 01:14:11 +0000 (18:14 -0700)
commit4d3ac6662452060721599a3392bc2f524af984cb
treece96ba06e0e2ecc0522bea8e6d9a9ccdb92a5772
parente8087b5b90b2aa0a307e57e1a209a91d60da268b
clk: bcm2835: fix check of error code returned by devm_ioremap_resource()

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 <[email protected]>
Fixes: 5e63dcc74b30 ("clk: bcm2835: Add a driver for the auxiliary peripheral clock gates")
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
drivers/clk/bcm/clk-bcm2835-aux.c
This page took 0.043941 seconds and 4 git commands to generate.