oops called ctor instead of dtor.. found this on the kernel merge
authorDave Airlie <airlied@linux.ie>
Thu, 2 Sep 2004 12:33:03 +0000 (12:33 +0000)
committerDave Airlie <airlied@linux.ie>
Thu, 2 Sep 2004 12:33:03 +0000 (12:33 +0000)
linux-core/drm_context.c
linux/drm_context.h

index c9ccaa0..e1cb95c 100644 (file)
@@ -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 );
        }
 
index c9ccaa0..e1cb95c 100644 (file)
@@ -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 );
        }