regulator: Checking return value of of_get_regulator_init_data
authorAxel Lin <axel.lin@gmail.com>
Sat, 26 Nov 2011 12:19:19 +0000 (20:19 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Nov 2011 11:29:21 +0000 (11:29 +0000)
of_get_regulator_init_data() may return NULL, thus
check the return value to avoid NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found