Re: [PATCH] iio: multiplexer: check memory allocation failure

2017-08-26 Thread Peter Rosin
On 2017-08-26 07:49, Christophe JAILLET wrote: > Check memory allocation failures and return -ENOMEM in such cases, as > already done few lines above for another memory allocation. > > This avoids NULL pointers dereference. > > Signed-off-by: Christophe JAILLET Hi! This is a dup of an older pa

[PATCH] iio: multiplexer: check memory allocation failure

2017-08-25 Thread Christophe JAILLET
Check memory allocation failures and return -ENOMEM in such cases, as already done few lines above for another memory allocation. This avoids NULL pointers dereference. Signed-off-by: Christophe JAILLET --- drivers/iio/multiplexer/iio-mux.c | 6 ++ 1 file changed, 6 insertions(+) diff --gi