Re: [PATCH] mfd: Fix potential NULL pointer dereference

2017-07-17 Thread Lee Jones
On Wed, 05 Jul 2017, Christophe JAILLET wrote: > 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: Chr

[PATCH] mfd: Fix potential NULL pointer dereference

2017-07-04 Thread Christophe JAILLET
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 --- drivers/mfd/max8998.c | 6 ++ 1 file