From: Ben Skeggs Date: Mon, 11 Apr 2011 06:37:44 +0000 (+1000) Subject: drm/nouveau: populate ttm_alloced with false, when it's not X-Git-Tag: v2.6.39-rc5~39^2~1^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8706398bf8841868d4e56fc924a5edcd3f156243;p=karo-tx-linux.git drm/nouveau: populate ttm_alloced with false, when it's not Caught with kmemcheck on unrelated business. Signed-off-by: Ben Skeggs --- 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++;