From: Julia Lawall Date: Fri, 4 Jun 2010 23:17:37 +0000 (-0700) Subject: arch/sparc/kernel: Eliminate what looks like a NULL pointer dereference X-Git-Tag: v2.6.35-rc6~10^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0659c78d7ea29ad6c3c538dcaae0227f31b9d2;p=pandora-kernel.git arch/sparc/kernel: Eliminate what looks like a NULL pointer dereference At the point of the test, action cannot be NULL, as it has been dereferenced in the code just above. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ expression E,E1; identifier f; statement S1,S2,S3; @@ if ((E == NULL && ...) || ...) { ... when != if (...) S1 else S2 when != E = E1 * E->f ... when any } else S3 // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed