In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: stop restore retries on device unplug amdgpu_amdkfd_restore_userptr_worker() and svm_range_restore_work() reschedule themselves when validation fails with evicted objects pending. After a surprise removal the restore paths fail with -ENODEV permanently, so rescheduling just spins the worker uselessly until cancel_delayed_work_sync() in fini finally stops it - which can take a while, since process teardown itself is delayed by the dead device. Treat -ENODEV as terminal in both workers. (cherry picked from commit 266fab83139600e58db7e900e930c722e619b78c)