aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2021-12-16 19:30:18 +0000
committerRafael J. Wysocki <[email protected]>2021-12-17 17:36:08 +0000
commit544e737dea5ad1a457f25dbddf68761ff25e028b (patch)
treea13a16253b52bda4aec4b8f1490f1857eeeaae33 /drivers/acpi/cppc_acpi.c
parentLinux 5.16-rc5 (diff)
downloadkernel-544e737dea5ad1a457f25dbddf68761ff25e028b.tar.gz
kernel-544e737dea5ad1a457f25dbddf68761ff25e028b.zip
PM: sleep: Fix error handling in dpm_prepare()
Commit 2aa36604e824 ("PM: sleep: Avoid calling put_device() under dpm_list_mtx") forgot to update the while () loop termination condition to also break the loop if error is nonzero, which causes the loop to become infinite if device_prepare() returns an error for one device. Add the missing !error check. Fixes: 2aa36604e824 ("PM: sleep: Avoid calling put_device() under dpm_list_mtx") Signed-off-by: Rafael J. Wysocki <[email protected]> Reported-by: Thomas Hellström <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Cc: All applicable <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions