diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-04-09 19:05:05 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-20 13:19:33 +1000 |
commit | fd632aa34c8592fb1d37fc83cbffa827bc7dd42c (patch) | |
tree | 5c6a0fc186e297590aee2c050b837a721db337b2 /drivers/gpu/drm/i915 | |
parent | 1d397043bcc2c8cdccb584a8ef73131f28f18e4c (diff) | |
download | linux-stable-fd632aa34c8592fb1d37fc83cbffa827bc7dd42c.tar.gz linux-stable-fd632aa34c8592fb1d37fc83cbffa827bc7dd42c.tar.bz2 linux-stable-fd632aa34c8592fb1d37fc83cbffa827bc7dd42c.zip |
drm: free core gem object from driver callbacks
When drivers embed the core gem object into their own structures,
they'll have to do this. Temporarily this results in an ugly
kfree(gem_obj);
in every gem driver.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 80871c62a571..d4ea90999f67 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -4474,6 +4474,9 @@ void i915_gem_free_object(struct drm_gem_object *obj) kfree(obj_priv->page_cpu_valid); kfree(obj_priv->bit_17); kfree(obj->driver_private); + + drm_gem_object_release(obj); + kfree(obj); } /** Unbinds all inactive objects. */ |