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:
34b71eb
)
i915: fix missing header when copying data from userspace
author
Dave Airlie
<airlied@redhat.com>
Thu, 24 Jan 2008 05:18:09 +0000
(15:18 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 24 Jan 2008 05:18:09 +0000
(15:18 +1000)
shared-core/i915_dma.c
patch
|
blob
|
history
diff --git
a/shared-core/i915_dma.c
b/shared-core/i915_dma.c
index
ed56308
..
287e95a
100644
(file)
--- a/
shared-core/i915_dma.c
+++ b/
shared-core/i915_dma.c
@@
-834,7
+834,7
@@
int i915_process_relocs(struct drm_file *file_priv,
goto out;
}
- reloc_buf_size =
reloc_count * I915_RELOC0_STRIDE
* sizeof(uint32_t);
+ reloc_buf_size =
(I915_RELOC_HEADER + (reloc_count * I915_RELOC0_STRIDE))
* sizeof(uint32_t);
reloc_buf = kmalloc(reloc_buf_size, GFP_KERNEL);
if (!reloc_buf) {
DRM_ERROR("Out of memory for reloc buffer\n");