drm/ttm: cleanup BO size handling v3
[linux-2.6-microblaze.git] / drivers / gpu / drm / nouveau / nv50_fence.c
index 447238e..1625826 100644 (file)
@@ -39,7 +39,7 @@ nv50_fence_context_new(struct nouveau_channel *chan)
        struct nv10_fence_chan *fctx;
        struct ttm_resource *reg = &priv->bo->bo.mem;
        u32 start = reg->start * PAGE_SIZE;
-       u32 limit = start + reg->size - 1;
+       u32 limit = start + priv->bo->bo.base.size - 1;
        int ret;
 
        fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL);