Commit cfd8be08 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: fix oops on pre-semaphore hardware

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent ffbc559b
...@@ -530,7 +530,8 @@ nouveau_fence_channel_init(struct nouveau_channel *chan) ...@@ -530,7 +530,8 @@ nouveau_fence_channel_init(struct nouveau_channel *chan)
nouveau_gpuobj_ref(NULL, &obj); nouveau_gpuobj_ref(NULL, &obj);
if (ret) if (ret)
return ret; return ret;
} else { } else
if (USE_SEMA(dev)) {
/* map fence bo into channel's vm */ /* map fence bo into channel's vm */
ret = nouveau_bo_vma_add(dev_priv->fence.bo, chan->vm, ret = nouveau_bo_vma_add(dev_priv->fence.bo, chan->vm,
&chan->fence.vma); &chan->fence.vma);
......
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