Commit a10e9e1d authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: fix oopses caused by clear being called on unpopulated ttms

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1a97b4ac
...@@ -67,7 +67,10 @@ nouveau_sgdma_clear(struct ttm_backend *be) ...@@ -67,7 +67,10 @@ nouveau_sgdma_clear(struct ttm_backend *be)
pci_unmap_page(dev->pdev, nvbe->pages[nvbe->nr_pages], pci_unmap_page(dev->pdev, nvbe->pages[nvbe->nr_pages],
PAGE_SIZE, PCI_DMA_BIDIRECTIONAL); PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
} }
nvbe->unmap_pages = false;
} }
nvbe->pages = NULL;
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment