From: Julia Lawall Date: Wed, 1 Jan 2014 13:07:00 +0000 (+0000) Subject: staging:iio:impedance:ad5933: correct error check X-Git-Tag: v3.14-rc3~12^2~37^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ed104de68c345c9a827225e93c74c6894613a9;p=pandora-kernel.git 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/) // @@ expression *x; identifier f; statement S1,S2; @@ *x = f(...); if (x) { <+... when != if (...) S1 else S2 -ENOMEM ...+> } // Signed-off-by: Julia Lawall Signed-off-by: Jonathan Cameron cc: stable@vger.kernel.org --- Reading git-diff-tree failed