mfd: wm831x: Fix possible NULL pointer dereference
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 14 Sep 2015 09:07:56 +0000 (11:07 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 26 Oct 2015 14:49:04 +0000 (14:49 +0000)
commit16dfd10375011e0999ce9d96df2df08380edf001
treedae9716e71be06d3f9e622d741c6bd0bb324877f
parentd785334a0d5deff30a487c74324b842d2179553d
mfd: wm831x: Fix possible NULL pointer dereference

The driver always checks for pdata being NULL except in one place.
Add a check to prevent a possible NULL pointer deference error.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm831x-core.c