diff options
author | Julia Lawall <julia@diku.dk> | 2011-04-22 22:46:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-29 14:17:45 -0700 |
commit | df43daaae926c3710eda911ec048808c904572fe (patch) | |
tree | 02c6eabf1a21bbbd91ed0dda7f94a67b2f096034 /README | |
parent | 83c67571b372c4a40023a84e183fdb7fa4e89e48 (diff) | |
download | op-kernel-dev-df43daaae926c3710eda911ec048808c904572fe.zip op-kernel-dev-df43daaae926c3710eda911ec048808c904572fe.tar.gz |
drivers/tty/moxa.c: Put correct tty value
The tty value that should be put is the one that was just gotten by
tty_port_tty_get, not the one that is the argument to the enclosing
function.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@exists@
local idexpression struct tty_struct *x;
expression ra,rr;
statement S1,S2;
@@
x = tty_port_tty_get(...)
... when != x = rr
when any
when != tty_kref_put(x,...)
when != if (...) { ... tty_kref_put(x,...) ...}
(
if(<+...x...+>) S1 else S2
|
if(...) { ... when != x = ra
when forall
when != tty_kref_put(x,...)
*return...;
}
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions