提交 a10e9e1d 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 1a97b4ac
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册