Re: [PATCH] remoteproc: st: fix check of syscon_regmap_lookup_by_phandle() return value

From: Bjorn Andersson
Date: Mon Mar 21 2016 - 13:21:21 EST


On Sat, Mar 19, 2016 at 6:31 AM, Vladimir Zapolskiy <vz@xxxxxxxxx> wrote:
> 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@xxxxxxxxx>

Applied, with Lee's ack.

Thanks,
Bjorn