drm/nouveau: when bailing out of a pushbuf ioctl, do not remove previous fence
Cc: stable@vger.kernel.org Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5d216f6013
commit
9360bd1112
1 changed files with 2 additions and 1 deletions
|
@ -308,7 +308,8 @@ validate_fini_list(struct list_head *list, struct nouveau_fence *fence,
|
||||||
list_for_each_safe(entry, tmp, list) {
|
list_for_each_safe(entry, tmp, list) {
|
||||||
nvbo = list_entry(entry, struct nouveau_bo, entry);
|
nvbo = list_entry(entry, struct nouveau_bo, entry);
|
||||||
|
|
||||||
nouveau_bo_fence(nvbo, fence);
|
if (likely(fence))
|
||||||
|
nouveau_bo_fence(nvbo, fence);
|
||||||
|
|
||||||
if (unlikely(nvbo->validate_mapped)) {
|
if (unlikely(nvbo->validate_mapped)) {
|
||||||
ttm_bo_kunmap(&nvbo->kmap);
|
ttm_bo_kunmap(&nvbo->kmap);
|
||||||
|
|
Loading…
Add table
Reference in a new issue