Tag: 3c1b1ce00d2702d6be9b92233822e560f37ea780

PTR_ERR should be called before its argument is cleared.

Author: Julia Lawall <Julia.Lawall@lip6.fr> 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 — kernel/rcutorture.c | 5 ++++- …

Continue reading