lockdep warned about a possible locking dependency
authorDave Airlie <airlied@redhat.com>
Tue, 18 Dec 2007 08:17:11 +0000 (19:17 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Dec 2007 08:17:11 +0000 (19:17 +1100)
linux-core/drm_fops.c

index cc09fc1..7efcb23 100644 (file)
@@ -472,8 +472,8 @@ int drm_release(struct inode *inode, struct file *filp)
        }
        mutex_unlock(&dev->ctxlist_mutex);
 
-       mutex_lock(&dev->struct_mutex);
        drm_fb_release(filp);
+       mutex_lock(&dev->struct_mutex);
        drm_object_release(filp);
        if (file_priv->remove_auth_on_close == 1) {
                struct drm_file *temp;