Input: snvs_pwrkey - fix returned value check of syscon_regmap_lookup_by_phandle()
commit9979c1c70724ccca8fec10012e320b8145ad5368
authorVladimir Zapolskiy <vz@mleia.com>
Tue, 8 Mar 2016 19:06:39 +0000 (8 11:06 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 12 Mar 2016 01:53:17 +0000 (11 17:53 -0800)
tree1f07e08cf00a22917b8d7c3197f7ef8771c4965c
parent62d5bdf972ebcfc99f72f734ae979713e4ca6450
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: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/snvs_pwrkey.c