From 76bd14ff9acf47dc147cec13f4a4d5c090c65c70 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 23 Jul 2013 15:49:39 +0200 Subject: drm: fix semaphore dmabuf obj Fixes some dmabuf object errors on nv50 chipset and below. Cc: stable@vger.kernel.org [3.7+] Signed-off-by: Maarten Lankhorst Signed-off-by: Ben Skeggs --- drm/nv17_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drm/nv17_fence.c') diff --git a/drm/nv17_fence.c b/drm/nv17_fence.c index 8e47a9bae..22aa9963e 100644 --- a/drm/nv17_fence.c +++ b/drm/nv17_fence.c @@ -76,7 +76,7 @@ nv17_fence_context_new(struct nouveau_channel *chan) struct ttm_mem_reg *mem = &priv->bo->bo.mem; struct nouveau_object *object; u32 start = mem->start * PAGE_SIZE; - u32 limit = mem->start + mem->size - 1; + u32 limit = start + mem->size - 1; int ret = 0; fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); -- cgit v1.2.1