From: Julia Lawall Date: Tue, 22 Dec 2009 20:30:59 +0000 (+0100) Subject: drivers/dma: Correct use after free X-Git-Tag: v2.6.33-rc3~33^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0794ec8ce327ec74416b569b8fb1951274693700;p=pandora-kernel.git drivers/dma: Correct use after free 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/) // @@ expression x,e; identifier f; iterator I; statement S; @@ *kfree(x); ... when != &x when != x = e when != I(x,...) S *x->f // Signed-off-by: Julia Lawall Signed-off-by: Dan Williams --- Reading git-diff-tree failed