From: Michel Dänzer <michel.daen...@amd.com>

This allows a following change to be slightly simpler.

Signed-off-by: Michel Dänzer <michel.daen...@amd.com>
---
 src/amdgpu_drm_queue.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c
index 2aa21e04d..d1456ca84 100644
--- a/src/amdgpu_drm_queue.c
+++ b/src/amdgpu_drm_queue.c
@@ -150,6 +150,9 @@ amdgpu_drm_abort_entry(uintptr_t seq)
 {
        struct amdgpu_drm_queue_entry *e, *tmp;
 
+       if (seq == AMDGPU_DRM_QUEUE_ERROR)
+               return;
+
        xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) {
                if (e->seq == seq) {
                        amdgpu_drm_abort_one(e);
-- 
2.17.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to