projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54fbf85
)
Bugzilla #3217: The size field in the new dma handle structure was
author
Eric Anholt
<anholt@freebsd.org>
Sat, 28 May 2005 20:25:04 +0000
(20:25 +0000)
committer
Eric Anholt
<anholt@freebsd.org>
Sat, 28 May 2005 20:25:04 +0000
(20:25 +0000)
uninitialized, and its use in drm_pci_free later resulted in panics.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
linux-core/drm_pci.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_pci.c
b/linux-core/drm_pci.c
index
f8f221c
..
543c770
100644
(file)
--- 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