mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 19:12:36 +00:00
When the last device in the dpm list is unregistered directly after its prepare() callback returned with -EAGAIN, the return code is passed to the calling function, resulting in a suspend failure. Prevent this by clearing the return code after -EAGAIN. Signed-off-by: Sebastian Ott <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>