Julia Lawall 1783e60ff2 [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>
2008-06-10 10:03:28 +02:00
..
2006-12-08 15:53:52 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2006-07-12 16:41:55 +02:00
2007-02-05 21:18:53 +01:00
2007-04-27 16:01:45 +02:00
2005-04-16 15:20:36 -07:00
2007-05-10 15:45:52 +02:00
2005-04-16 15:20:36 -07:00
2006-04-28 08:33:48 -07:00
2007-07-17 13:36:19 +02:00
2007-07-17 13:36:19 +02:00
2008-05-20 13:31:56 -07:00