Skip to content

Commit

Permalink
drm/nouveau: populate ttm_alloced with false, when it's not
Browse files Browse the repository at this point in the history
Caught with kmemcheck on unrelated business.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Apr 19, 2011
1 parent 01d1533 commit 8706398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/nouveau/nouveau_sgdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 8706398

Please sign in to comment.