summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-04-11 08:37:44 +0200
committerBen Skeggs <bskeggs@redhat.com>2011-04-20 00:50:40 +0200
commit8706398bf8841868d4e56fc924a5edcd3f156243 (patch)
tree14ca8b84d59e45130006fff7ffaf4e0d61f8ae41 /drivers/gpu
parentdrm/nouveau: fix nv30 pcie boards (diff)
downloadlinux-8706398bf8841868d4e56fc924a5edcd3f156243.tar.xz
linux-8706398bf8841868d4e56fc924a5edcd3f156243.zip
drm/nouveau: populate ttm_alloced with false, when it's not
Caught with kmemcheck on unrelated business. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_sgdma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
index fc292443039e..4bce801bc588 100644
--- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c
@@ -55,6 +55,7 @@ nouveau_sgdma_populate(struct ttm_backend *be, unsigned long num_pages,
be->func->clear(be);
return -EFAULT;
}
+ nvbe->ttm_alloced[nvbe->nr_pages] = false;
}
nvbe->nr_pages++;