diff options
author | Julia Lawall <julia@diku.dk> | 2008-06-10 10:03:25 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-06-10 10:03:28 +0200 |
commit | 1783e60ff207805a3e75cf522b17ec9bb1604a62 (patch) | |
tree | 8245a54df59222e7e8ecd132c13f6c133284adfb /drivers/hwmon/w83627hf.c | |
parent | b57838ea3f860c97e4726ab93abdf83a3d079a66 (diff) |
[S390] tape_3590.c: introduce missing kfree
The semantic match that finds the problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)
@r exists@
expression E,E1;
statement S;
position p1,p2,p3;
@@
E =@p1 \(kmalloc\|kcalloc\|kzalloc\)(...)
... when != E = E1
if (E == NULL || ...) S
... when != E = E1
if@p2 (...) {
... when != kfree(E)
}
... when != E = E1
kfree@p3(E);
@forall@
position r.p2;
expression r.E;
int E1 != 0;
@@
* if@p2 (...) {
... when != kfree(E)
when strict
return E1; }
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/hwmon/w83627hf.c')
0 files changed, 0 insertions, 0 deletions