From: Rafael J. Wysocki Date: Mon, 8 Aug 2011 21:43:22 +0000 (+0200) Subject: PM / Domains: Make pm_genpd_poweron() always survive parent removal X-Git-Tag: v3.2-rc1~178^2~23^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e08cf429697090d0fac57d493dc7b6de17a5eee;p=pandora-kernel.git PM / Domains: Make pm_genpd_poweron() always survive parent removal If pm_genpd_remove_subdomain() is called to remove a PM domain's subdomain and pm_genpd_poweron() is called for that subdomain at the same time, and the pm_genpd_poweron() called by it recursively for the parent returns an error, the first pm_genpd_poweron()'s error code path will attempt to decrement the subdomain counter of a PM domain that it's not a subdomain of any more. Rearrange the code in pm_genpd_poweron() to prevent this from happening. Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed