summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/via/via_map.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-10-25 18:00:41 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2011-12-22 00:33:21 +0100
commit6de8a748881f1cd9d795454da2b6db616d5ca3d7 (patch)
tree55bedac6fab93c90461167039024eafdab72395f /drivers/gpu/drm/via/via_map.c
parent77ee8f3825054f23b17e9c8f728f061defd86cdc (diff)
downloadop-kernel-dev-6de8a748881f1cd9d795454da2b6db616d5ca3d7.zip
op-kernel-dev-6de8a748881f1cd9d795454da2b6db616d5ca3d7.tar.gz
drm/sis: track user->memblock mapping with idr
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/via/via_map.c')
-rw-r--r--drivers/gpu/drm/via/via_map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/via/via_map.c b/drivers/gpu/drm/via/via_map.c
index b09f659..fa5afbc 100644
--- a/drivers/gpu/drm/via/via_map.c
+++ b/drivers/gpu/drm/via/via_map.c
@@ -126,6 +126,8 @@ int via_driver_unload(struct drm_device *dev)
drm_via_private_t *dev_priv = dev->dev_private;
drm_sman_takedown(&dev_priv->sman);
+ idr_remove_all(&dev_priv->object_idr);
+ idr_destroy(&dev_priv->object_idr);
kfree(dev_priv);
OpenPOWER on IntegriCloud