Re: [PATCH] mfd: mc13xxx: i2c/spi Fix to avoid NULL pointer dereference

2019-04-02 Thread Lee Jones
On Mon, 18 Mar 2019, Aditya Pakki wrote: > of_match_device can return NULL if no matching device is found. The patches > avoids a scenario causing null pointer dereference. > > Signed-off-by: Aditya Pakki > --- > drivers/mfd/mc13xxx-i2c.c | 2 ++ > drivers/mfd/mc13xxx-spi.c | 2 ++ > 2 files

[PATCH] mfd: mc13xxx: i2c/spi Fix to avoid NULL pointer dereference

2019-03-18 Thread Aditya Pakki
of_match_device can return NULL if no matching device is found. The patches avoids a scenario causing null pointer dereference. Signed-off-by: Aditya Pakki --- drivers/mfd/mc13xxx-i2c.c | 2 ++ drivers/mfd/mc13xxx-spi.c | 2 ++ 2 files changed, 4 insertions(+) diff --git