Commit 58b21c22 authored by Maarten Lankhorst's avatar Maarten Lankhorst

drm/qxl: Fix crash in eviction from qxl_release_fence_buffer_objects

This crash was already here before the conversion, but qxl never leaked
hard enough to hit this.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
parent b75402c9
...@@ -440,7 +440,7 @@ void qxl_release_fence_buffer_objects(struct qxl_release *release) ...@@ -440,7 +440,7 @@ void qxl_release_fence_buffer_objects(struct qxl_release *release)
/* if only one object on the release its the release itself /* if only one object on the release its the release itself
since these objects are pinned no need to reserve */ since these objects are pinned no need to reserve */
if (list_is_singular(&release->bos)) if (list_is_singular(&release->bos) || list_empty(&release->bos))
return; return;
bo = list_first_entry(&release->bos, struct ttm_validate_buffer, head)->bo; bo = list_first_entry(&release->bos, struct ttm_validate_buffer, head)->bo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment