drm/nouveau: fix oops on pre-semaphore hardware

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2011-08-23 10:23:11 +10:00
parent ffbc559b06
commit cfd8be088e

View File

@ -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);