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:
Родитель
1a97b4ace0
Коммит
a10e9e1dbb
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче