diff options
| author | Rafael J. Wysocki <[email protected]> | 2025-06-03 16:17:58 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-03 20:14:03 +0000 |
| commit | 079e8889ad136930617278fbce44b42ef10af9e1 (patch) | |
| tree | 56068472f59fa6dec782b6537e9c2206ce5a6ae4 /lib/crypto/mpi/mpiutil.c | |
| parent | Merge tag 'pm-6.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ra... (diff) | |
| download | kernel-079e8889ad136930617278fbce44b42ef10af9e1.tar.gz kernel-079e8889ad136930617278fbce44b42ef10af9e1.zip | |
PM: sleep: Fix list splicing in device suspend error paths
Commits aa7a9275ab81 ("PM: sleep: Suspend async parents after suspending
children") and 443046d1ad66 ("PM: sleep: Make suspend of devices more
asynchronous") added list splicing to the error paths of dpm_suspend(),
dpm_suspend_late(), and dpm_noirq_suspend_devices(), but they should
have used the list_splice_init() variant because the emptied list is
used going forward in all of these cases.
Replace list_splice() with list_splice_init() in the code in question as
appropriate.
Fixes: aa7a9275ab81 ("PM: sleep: Suspend async parents after suspending children")
Fixes: 443046d1ad66 ("PM: sleep: Make suspend of devices more asynchronous")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/4280
Reported-and-tested-by: Chris Bainbridge <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
