From: Julia Lawall Date: Thu, 27 May 2010 12:37:19 +0000 (+0200) Subject: Staging: Eliminate a NULL pointer dereference X-Git-Tag: v2.6.35-rc2~14^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c60e55f30a4dac15db51b398c3bd94e4cfbf743a;p=pandora-kernel.git Staging: Eliminate a NULL pointer dereference Eliminate a NULL or near NULL pointer dereference. 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 return ...; } else S3 // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed