Christophe JAILLET 2042f3c29f mfd: max8998: Fix potential NULL pointer dereference
if 'max8998_i2c_parse_dt_pdata() fails (when out of memory), a NULL
pointer dereference will occur in the error handling code.

Return directly instead.

Fixes: ee999fb3f17f("mfd: max8998: Add support for Device Tree")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2017-09-05 08:46:00 +01:00
..
2016-11-29 08:21:33 +00:00
2017-07-11 09:55:47 -07:00
2015-11-06 10:23:50 -08:00
2017-07-06 08:29:13 +01:00
2017-09-04 14:49:04 +01:00
2017-07-18 08:27:18 +01:00
2015-10-30 17:19:51 +00:00
2015-10-30 17:19:51 +00:00
2017-09-04 14:49:04 +01:00
2016-08-10 09:25:18 +01:00
2016-08-10 09:25:18 +01:00
2017-04-27 09:25:04 +01:00
2015-08-11 15:09:01 +01:00
2015-08-11 15:09:01 +01:00
2015-09-04 11:46:02 -07:00