]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: s5m8767: Prevent possible NULL pointer dereference
authorAxel Lin <axel.lin@ingics.com>
Wed, 13 Feb 2013 01:31:31 +0000 (09:31 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Feb 2013 12:52:19 +0000 (12:52 +0000)
commit94633ee3a46e54817e11c332784dcfb0880c26ed
treeef2822bf7b852b1411efc72e64a3c4cf2789683e
parent1c5ce830e35ae22502623fdb5b29687efde1cf64
regulator: s5m8767: Prevent possible NULL pointer dereference

s5m8767_pmic_dt_parse_pdata dereferenes pdata, thus check pdata earlier to
avoid NULL pointer dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c