[prev in list] [next in list] [prev in thread] [next in thread]
List: dri-patches
Subject: drm: Branch 'i915-ttm-cfu'
From: airlied () freedesktop ! org (Dave Airlie)
Date: 2008-01-24 5:26:38
Message-ID: 20080124052638.5428A130009 () annarchy ! freedesktop ! org
[Download RAW message or body]
shared-core/i915_dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5b9930645227d52f47b6dc85cd1aee65bb5820ad
Author: Dave Airlie <airlied@redhat.com>
Date: Thu Jan 24 15:18:09 2008 +1000
i915: fix missing header when copying data from userspace
diff --git a/shared-core/i915_dma.c b/shared-core/i915_dma.c
index ed56308..287e95a 100644
--- 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");
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-patches mailing list
Dri-patches@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-patches
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic