]> git.karo-electronics.de Git - linux-beck.git/commit
remoteproc: st: fix check of syscon_regmap_lookup_by_phandle() return value
authorVladimir Zapolskiy <vz@mleia.com>
Sat, 19 Mar 2016 13:31:10 +0000 (15:31 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 28 Mar 2016 23:19:00 +0000 (16:19 -0700)
commit4b28038fd60d346337dcaca80c255db2724adf76
tree0391e37b5b082b99b4b7d7b1ce96d98e6fbf72c3
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
remoteproc: st: fix check of syscon_regmap_lookup_by_phandle() return value

syscon_regmap_lookup_by_phandle() returns either a valid pointer to
struct regmap or ERR_PTR() error value, check for NULL is invalid and
on error path may lead to oops, the change corrects the check.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/st_remoteproc.c