diff options
author | 2012-02-02 07:52:54 -0800 | |
---|---|---|
committer | 2012-02-21 09:06:10 -0800 | |
commit | 3c1b1ce00d2702d6be9b92233822e560f37ea780 (patch) | |
tree | 302e888faea366f7caccd6ad946bdde6d8e9137e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rcu: Convert WARN_ON_ONCE() in rcu_lock_acquire() to lockdep (diff) | |
download | linux-dev-3c1b1ce00d2702d6be9b92233822e560f37ea780.tar.xz linux-dev-3c1b1ce00d2702d6be9b92233822e560f37ea780.zip |
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions