mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
In amdgpu_plugin_drm_restore_file(), dmabuf_fd can reach the drmPrimeFDToHandle() call as -1 if fdstore_get() fails or if boinfo->handle is -1 while boinfo->is_import is true. Passing an invalid fd to libdrm causes a hard restore failure instead of a retry. Check for -1 and set retry_needed so the restore coordinator can retry later. When retry_needed is set, some dmabufs entries are still invalid, so skip record_completed_work() and restore_bo_contents_drm() to avoid operating on incomplete state. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> |
||
|---|---|---|
| .. | ||
| amdgpu | ||
| cuda | ||