diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-11-10 13:56:04 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-11 17:51:47 -0500 |
commit | f94982b0022f474d3c9285447d9a33b7a324e771 (patch) | |
tree | 1bd5afc715725c625d694ac2753ede392cd8d836 /drivers | |
parent | 0e8b3d3ea7c8f6e65c2c7220d64cbeb78023eff4 (diff) |
drm/i915: Allocate the proper size for contexts.
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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.c b/drivers/gpu/drm/i915/i915_gem_context.c index 05ed42f203d7..0e510df80d73 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, | |||
146 | struct i915_hw_context *ctx; | 146 | struct i915_hw_context *ctx; |
147 | int ret, id; | 147 | int ret, id; |
148 | 148 | ||
149 | ctx = kzalloc(sizeof(struct drm_i915_file_private), GFP_KERNEL); | 149 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); |
150 | if (ctx == NULL) | 150 | if (ctx == NULL) |
151 | return ERR_PTR(-ENOMEM); | 151 | return ERR_PTR(-ENOMEM); |
152 | 152 | ||