aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-05-28 20:25:04 +0000
committerEric Anholt <anholt@freebsd.org>2005-05-28 20:25:04 +0000
commitd7756397d695e5573647258f8412e9ecfb2645d4 (patch)
tree33d51aa1c4aebacf605c5897cc804cd957dce995
parent54fbf85125ef231f77b333d9e72cbc56b5bc012d (diff)
Bugzilla #3217: The size field in the new dma handle structure was
uninitialized, and its use in drm_pci_free later resulted in panics. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
-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