Skip to content
Commit 9979c1c7 authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Dmitry Torokhov
Browse files

Input: snvs_pwrkey - fix returned value check of syscon_regmap_lookup_by_phandle()



On error syscon_regmap_lookup_by_phandle() returns ERR_PTR() value,
which makes a check for NULL invalid and may lead to oops on error
path.

Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 62d5bdf9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment