Files
Linux/drivers/base
Rafael J. Wysocki 544e737dea PM: sleep: Fix error handling in dpm_prepare()
Commit 2aa36604e8 ("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: 2aa36604e8 ("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]>
2021-12-17 18:36:08 +01:00
..
…
2021-08-09 09:03:47 +02:00
…
…
…
2021-07-21 11:53:42 +02:00
…
…
…
…
…
…
…