summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_pci.c b/linux-core/drm_pci.c
index f8f221cd..543c7704 100644
--- a/linux-core/drm_pci.c
+++ b/linux-core/drm_pci.c
@@ -82,6 +82,7 @@ drm_dma_handle_t *drm_pci_alloc(drm_device_t * dev, size_t size, size_t align,
if (!dmah)
return NULL;
+ dmah->size = size;
dmah->vaddr = pci_alloc_consistent(dev->pdev, size, &dmah->busaddr);
#if DRM_DEBUG_MEMORY