From: Julia Lawall Date: Tue, 9 Feb 2010 06:44:18 +0000 (-0800) Subject: drivers/net: Correct NULL test X-Git-Tag: v2.6.33-rc8~34^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf4d812e66ee95f762b38063d654fd1ff7156b0;p=pandora-kernel.git drivers/net: Correct NULL test Test the value that was just allocated rather than the previously tested one. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ expression *x; expression e; identifier l; @@ if (x == NULL || ...) { ... when forall return ...; } ... when != goto l; when != x = e when != &x *x == NULL // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed