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
@ -55,6 +55,7 @@ nouveau_sgdma_populate(struct ttm_backend *be, unsigned long num_pages,
|
|||||||
be->func->clear(be);
|
be->func->clear(be);
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
nvbe->ttm_alloced[nvbe->nr_pages] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
nvbe->nr_pages++;
|
nvbe->nr_pages++;
|
||||||
|
Loading…
Reference in New Issue
Block a user