* [PATCH] drm/i915: Allocate the proper size for contexts.
@ 2012-11-10 18:56 Ben Widawsky
2012-11-10 20:20 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Ben Widawsky @ 2012-11-10 18:56 UTC (permalink / raw)
To: intel-gfx; +Cc: Ben Widawsky
Whoops. This was fixed previously, but not sure how it got lost. It's
not needed for -fixes or stable because at the moment
drm_i915_file_private is way bigger than i915_hw_context (by 120 bytes
on my 64b build).
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
---
drivers/gpu/drm/i915/i915_gem_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c
index 05ed42f..0e510df 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -146,7 +146,7 @@ create_hw_context(struct drm_device *dev,
struct i915_hw_context *ctx;
int ret, id;
- ctx = kzalloc(sizeof(struct drm_i915_file_private), GFP_KERNEL);
+ ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (ctx == NULL)
return ERR_PTR(-ENOMEM);
--
1.8.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/i915: Allocate the proper size for contexts.
2012-11-10 18:56 [PATCH] drm/i915: Allocate the proper size for contexts Ben Widawsky
@ 2012-11-10 20:20 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2012-11-10 20:20 UTC (permalink / raw)
To: Ben Widawsky; +Cc: intel-gfx
On Sat, Nov 10, 2012 at 10:56:04AM -0800, Ben Widawsky wrote:
> Whoops. This was fixed previously, but not sure how it got lost. It's
> not needed for -fixes or stable because at the moment
> drm_i915_file_private is way bigger than i915_hw_context (by 120 bytes
> on my 64b build).
>
> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Oops. Queued for -next, thanks for the patch.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-10 20:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-10 18:56 [PATCH] drm/i915: Allocate the proper size for contexts Ben Widawsky
2012-11-10 20:20 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox