diff options
author | 2011-08-08 23:43:22 +0200 | |
---|---|---|
committer | 2011-08-25 15:33:44 +0200 | |
commit | 9e08cf429697090d0fac57d493dc7b6de17a5eee (patch) | |
tree | 70b18a96a5510bdec9bd35307bbf9d3b3e57981d /fs/proc/array.c | |
parent | PM / Domains: Do not take parent locks to modify subdomain counters (diff) | |
download | wireguard-linux-9e08cf429697090d0fac57d493dc7b6de17a5eee.tar.xz wireguard-linux-9e08cf429697090d0fac57d493dc7b6de17a5eee.zip |
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 <rjw@sisk.pl>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions