diff options
-rw-r--r-- | linux-core/drm_context.c | 4 | ||||
-rw-r--r-- | linux/drm_context.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index c9ccaa01..e1cb95c6 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -552,8 +552,8 @@ int DRM(rmctx)( struct inode *inode, struct file *filp, priv->remove_auth_on_close = 1; } if ( ctx.handle != DRM_KERNEL_CONTEXT ) { - if (dev->fn_tbl.context_ctor) - dev->fn_tbl.context_ctor(dev, ctx.handle); + if (dev->fn_tbl.context_dtor) + dev->fn_tbl.context_dtor(dev, ctx.handle); DRM(ctxbitmap_free)( dev, ctx.handle ); } diff --git a/linux/drm_context.h b/linux/drm_context.h index c9ccaa01..e1cb95c6 100644 --- a/linux/drm_context.h +++ b/linux/drm_context.h @@ -552,8 +552,8 @@ int DRM(rmctx)( struct inode *inode, struct file *filp, priv->remove_auth_on_close = 1; } if ( ctx.handle != DRM_KERNEL_CONTEXT ) { - if (dev->fn_tbl.context_ctor) - dev->fn_tbl.context_ctor(dev, ctx.handle); + if (dev->fn_tbl.context_dtor) + dev->fn_tbl.context_dtor(dev, ctx.handle); DRM(ctxbitmap_free)( dev, ctx.handle ); } |