mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
drm/nouveau: fix oopses caused by clear being called on unpopulated ttms
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
1a97b4ace0
commit
a10e9e1dbb
1 changed files with 3 additions and 0 deletions
|
|
@ -67,7 +67,10 @@ nouveau_sgdma_clear(struct ttm_backend *be)
|
|||
pci_unmap_page(dev->pdev, nvbe->pages[nvbe->nr_pages],
|
||||
PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
|
||||
}
|
||||
nvbe->unmap_pages = false;
|
||||
}
|
||||
|
||||
nvbe->pages = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue