diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-02-01 23:53:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-02 14:35:12 -0500 |
commit | cb0a178c787d2bdf787d56e364becdb0eb4b4fab (patch) | |
tree | 607de6b3e6df8bac829256aa8790eaf04a8b2cb8 /REPORTING-BUGS | |
parent | 4b8a8bc9249f144803d840f2f7608ee9bbf1ea51 (diff) |
drivers/net/ethernet/ti: Move call to PTR_ERR after reassignment
PTR_ERR should be called before its argument is cleared.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression e,e1;
constant c;
@@
*e = c
... when != e = e1
when != &e
when != true IS_ERR(e)
*PTR_ERR(e)
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions