alistair23-linux/drivers/staging/iio/impedance-analyzer
Julia Lawall e9ed104de6 staging:iio:impedance:ad5933: correct error check
iio_kfifo_allocate returns NULL in case of error.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *x;
identifier f;
statement S1,S2;
@@

*x = f(...);
 if (x) { <+... when != if (...) S1 else S2
     -ENOMEM ...+> }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
cc: stable@vger.kernel.org
2014-01-01 12:19:17 +00:00
..
ad5933.c staging:iio:impedance:ad5933: correct error check 2014-01-01 12:19:17 +00:00
ad5933.h
Kconfig staging:iio:impedance-analyzer switch from sw_ring to kfifo. 2013-01-26 10:07:52 +00:00
Makefile