]> git.baikalelectronics.ru Git - kernel.git/commit
spmi: pmic-arb: fix a possible null pointer dereference
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 28 Jul 2017 07:10:45 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commit239cbcebd93938b556c8fb6445d05906b42226c6
tree0dd078ffbf74c6349dce92c8375be3033a788c7d
parent943d74b3e3ef8d33dd5a0a8def2f900d12f17ee8
spmi: pmic-arb: fix a possible null pointer dereference

If "core" memory resource is not specified, then the driver could
end up dereferencing a null pointer. Fix this issue.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c