From: Julia Lawall Date: Tue, 15 Dec 2009 02:01:20 +0000 (-0800) Subject: drivers/mmc: Move dereference after NULL test X-Git-Tag: v2.6.33-rc1~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3423d80af67a94a641cc3297ec8c0869aa7f197c;p=pandora-kernel.git drivers/mmc: Move dereference after NULL test If the NULL test on mrq is needed, then the derefernce should be after the NULL test. A simplified version of the semantic match that detects this problem is as follows (http://coccinelle.lip6.fr/): // @match exists@ expression x, E; identifier fld; @@ * x->fld ... when != \(x = E\|&x\) * x == NULL // Signed-off-by: Julia Lawall Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed