From: Julia Lawall Date: Thu, 2 Feb 2012 15:52:54 +0000 (-0800) Subject: PTR_ERR should be called before its argument is cleared. X-Git-Tag: v3.4-rc1~194^2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c1b1ce00d2702d6be9b92233822e560f37ea780;p=pandora-kernel.git PTR_ERR should be called before its argument is cleared. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e,e1; constant c; @@ *e = c ... when != e = e1 when != &e when != true IS_ERR(e) *PTR_ERR(e) // Signed-off-by: Julia Lawall Reported-by: Josh Triplett Signed-off-by: Paul E. McKenney --- Reading git-diff-tree failed