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>
This commit is contained in:
parent
01d153326e
commit
8706398bf8
1 changed files with 1 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Reference in a new issue