From: Julia Lawall Date: Thu, 27 May 2010 12:36:45 +0000 (-0300) Subject: V4L/DVB: drivers/media: Eliminate a NULL pointer dereference X-Git-Tag: v2.6.35-rc2~11^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4202066c6995200b2755a4501ea90f5d4e163e41;p=pandora-kernel.git V4L/DVB: drivers/media: Eliminate a NULL pointer dereference In each case, the print involves dereferencing a value that is NULL or is near NULL. 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: Mauro Carvalho Chehab --- Reading git-diff-tree failed