diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-09-03 11:02:44 -0400 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-09-03 11:09:13 -0400 |
commit | 58b21c22c66dd223d27405d54b47102a27bda0b7 (patch) | |
tree | a91a599745201240ee45f454634a2223aa68c914 /drivers/gpu/drm/qxl | |
parent | b75402c9f98a431ae352a223153825513eac9600 (diff) |
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: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'drivers/gpu/drm/qxl')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_release.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c index 29ab4ec44c40..a6e19c83143e 100644 --- a/drivers/gpu/drm/qxl/qxl_release.c +++ b/drivers/gpu/drm/qxl/qxl_release.c | |||
@@ -440,7 +440,7 @@ void qxl_release_fence_buffer_objects(struct qxl_release *release) | |||
440 | 440 | ||
441 | /* if only one object on the release its the release itself | 441 | /* if only one object on the release its the release itself |
442 | since these objects are pinned no need to reserve */ | 442 | since these objects are pinned no need to reserve */ |
443 | if (list_is_singular(&release->bos)) | 443 | if (list_is_singular(&release->bos) || list_empty(&release->bos)) |
444 | return; | 444 | return; |
445 | 445 | ||
446 | bo = list_first_entry(&release->bos, struct ttm_validate_buffer, head)->bo; | 446 | bo = list_first_entry(&release->bos, struct ttm_validate_buffer, head)->bo; |