From: Julia Lawall Date: Sun, 28 Mar 2010 23:39:22 +0000 (+0000) Subject: powerpc/pmac/windfarm: Correct potential double free X-Git-Tag: v2.6.35-rc1~450^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab30f78c0afbb86584144925e25c7ca68ba9a91f;p=pandora-kernel.git powerpc/pmac/windfarm: Correct potential double free The conditionals were testing different values, but then all freeing the same one, which could result in a double free. 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 // Signed-off-by: Julia Lawall Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed