diff options
author | Ben Skeggs | 2011-11-25 16:35:34 +1000 |
---|---|---|
committer | Ben Skeggs | 2011-11-30 23:41:05 +1000 |
commit | a10e9e1dbb39970f232b1e2b0e4f738e2d77079f (patch) | |
tree | 9571e0b1fdd82557d380301084b904510825a2c1 /drivers/gpu/drm | |
parent | 1a97b4ace09d7d3fe213a73bc466ca33af98c91c (diff) |
drm/nouveau: fix oopses caused by clear being called on unpopulated ttms
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_sgdma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_sgdma.c b/drivers/gpu/drm/nouveau/nouveau_sgdma.c index b75258a9fe44..c8a463b76c89 100644 --- a/drivers/gpu/drm/nouveau/nouveau_sgdma.c +++ b/drivers/gpu/drm/nouveau/nouveau_sgdma.c @@ -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 |