From: Julia Lawall Date: Fri, 2 Apr 2010 02:47:13 +0000 (+0000) Subject: powerpc/pseries/dlpar: Eliminate use after free X-Git-Tag: v2.6.35-rc1~450^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7df5c5e52a545774c4db1f2adf09ede018ab139;p=pandora-kernel.git powerpc/pseries/dlpar: Eliminate use after free dlpar_free_cc_nodes frees its argument, so dlpar_online_cpu should not be called on the same value. Skip over the call to dlpar_online_cpu by jumping directly to out. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression E,E2; @@ dlpar_free_cc_nodes(E) ... ( E = E2 | * E ) // Signed-off-by: Julia Lawall Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed