git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e9d1b1
)
drivers/dma: Correct use after free
author
Julia Lawall
<julia@diku.dk>
Tue, 22 Dec 2009 20:30:59 +0000
(21:30 +0100)
committer
Dan Williams
<dan.j.williams@intel.com>
Tue, 22 Dec 2009 22:30:08 +0000
(15:30 -0700)
Move the kfree after the iounmap that refers to the same structure.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,e;
identifier f;
iterator I;
statement S;
@@
*kfree(x);
... when != &x
when != x = e
when != I(x,...) S
*x->f
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/coh901318.c
patch
|
blob
|
history
diff --cc
drivers/dma/coh901318.c
Simple merge