drm/radeon/kms: release CMASK access in preclose_kms
authorMarek Olšák <maraeo@gmail.com>
Thu, 27 Jan 2011 21:46:15 +0000 (22:46 +0100)
committerDave Airlie <airlied@gmail.com>
Fri, 28 Jan 2011 00:59:12 +0000 (10:59 +1000)
Signed-off-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/radeon/radeon_kms.c

index 98321298cffd698e7c022ba44f4737dab1e7c7af..8387d32caaa76be06f95aa79bbb30fda15916f5f 100644 (file)
@@ -247,6 +247,8 @@ void radeon_driver_preclose_kms(struct drm_device *dev,
        struct radeon_device *rdev = dev->dev_private;
        if (rdev->hyperz_filp == file_priv)
                rdev->hyperz_filp = NULL;
+       if (rdev->cmask_filp == file_priv)
+               rdev->cmask_filp = NULL;
 }
 
 /*