aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_context.c')
-rw-r--r--drivers/gpu/drm/drm_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c
index 45adf97e678f..75f62c5e2a6b 100644
--- a/drivers/gpu/drm/drm_context.c
+++ b/drivers/gpu/drm/drm_context.c
@@ -118,7 +118,7 @@ int drm_ctxbitmap_init(struct drm_device * dev)
118void drm_ctxbitmap_cleanup(struct drm_device * dev) 118void drm_ctxbitmap_cleanup(struct drm_device * dev)
119{ 119{
120 mutex_lock(&dev->struct_mutex); 120 mutex_lock(&dev->struct_mutex);
121 idr_remove_all(&dev->ctx_idr); 121 idr_destroy(&dev->ctx_idr);
122 mutex_unlock(&dev->struct_mutex); 122 mutex_unlock(&dev->struct_mutex);
123} 123}
124 124