PM: runtime: Fix ordering in pm_runtime_get_suppliers()
stable inclusion from stable-5.10.28 commit cc038ab785a836677bfae8756e24e1e9ace00632 bugzilla: 51779 -------------------------------- commit c0c33442 upstream. 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: 4c06c4e6 ("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> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment