]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
regulator: anatop: make sure regulator name is properly defined
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 14 Apr 2017 14:32:43 +0000 (22:32 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 14 Apr 2017 17:09:26 +0000 (18:09 +0100)
commit4af5924c02818ca170bb6902dbb883687b969aeb
tree6bf18fe423a1a175cc831b97eaaaa4996b3ec186
parent9bf944548169f6153c3d3778cf983cb5db251a0e
regulator: anatop: make sure regulator name is properly defined

For anatop regulator we must have a name accordingly. Make sure the name
is properly checked before using it to avoid a possible kernel NULL
point crash.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c