Tag: cb0a178c787d2bdf787d56e364becdb0eb4b4fab

drivers/net/ethernet/ti: Move call to PTR_ERR after reassignment

Author: Julia Lawall <Julia.Lawall@lip6.fr> 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 …

Continue reading