mfd: wm831x-spi: Add NULL check before pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 24 May 2017 09:18:52 +0000 (04:18 -0500)
committerLee Jones <lee.jones@linaro.org>
Thu, 6 Jul 2017 07:29:11 +0000 (08:29 +0100)
commit7b55033fbed07bad695ba744db3070c1cc351dc4
tree686775423c95b19f1b7ee2e0f608ddc1cdbbe037
parent800e54558b0f1444e480ad4eb8d4a774899875d8
mfd: wm831x-spi: Add NULL check before pointer dereference

Add NULL check before dereferencing pointer of_id in order to avoid
a potential NULL pointer dereference.

Addresses-Coverity-ID: 1408830
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm831x-spi.c