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)
commit000e1a43d3d2d4541f10be997c1609b69beb22d5
tree0dd078ffbf74c6349dce92c8375be3033a788c7d
parente95d073c8ce397a8e77c36a208be978060bb214f
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