Always delete entry from list in drm_queue_handler

We left entries without a handler hook in the list, so the list could
keep taking longer to process and use up more memory.
This commit is contained in:
Michel Dänzer
2018-08-29 18:41:19 +02:00
committed by Michel Dänzer
parent b804d7f85d
commit 7eea3e2cd7

View File

@@ -82,7 +82,7 @@ amdgpu_drm_queue_handler(struct xorg_list *signalled, unsigned int frame,
xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) {
if (e->seq == seq) {
if (!e->handler) {
e->abort(e->crtc, e->data);
amdgpu_drm_queue_handle_one(e);
break;
}