drm/nouveau: populate ttm_alloced with false, when it's not
authorBen Skeggs <bskeggs@redhat.com>
Mon, 11 Apr 2011 06:37:44 +0000 (16:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Apr 2011 22:50:40 +0000 (08:50 +1000)
Caught with kmemcheck on unrelated business.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_sgdma.c

index fc292443039e34a9973a163566f7fe7f00682e7e..4bce801bc588ffd04e1cdd3800e2e82ebf33008f 100644 (file)
@@ -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++;