commit | c0c33442f7203704aef345647e14c2fb86071001 | [log] [tgz] |
---|---|---|
author | Adrian Hunter <adrian.hunter@intel.com> | Fri Mar 26 12:56:18 2021 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Mon Mar 29 19:27:09 2021 +0200 |
tree | 3fbaa2ded7c272a6869b18bf2ffd87d638a328db | |
parent | a5e13c6df0e41702d2b2c77c8ad41677ebb065b3 [diff] |
PM: runtime: Fix ordering in pm_runtime_get_suppliers() rpm_active indicates how many times the supplier usage_count has been incremented. Consequently it must be updated after pm_runtime_get_sync() of the supplier, not before. Fixes: 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage counter imbalance") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: 5.1+ <stable@vger.kernel.org> # 5.1+ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>