aboutsummaryrefslogtreecommitdiff
path: root/linux-core/xgi_drv.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-06 16:35:07 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-06 16:35:07 -0700
commitf3072becda3a2d5fe587f20e155d4d4f9ace60a2 (patch)
tree4d5736c1179f32b9b1c1902f06dce3ee3cfc16d2 /linux-core/xgi_drv.c
parent90907c59152f628d6f0efea4927a06e547f4a3c7 (diff)
Refactor xgi_(fb|pcie)_free_all into xgi_free_all.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r--linux-core/xgi_drv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index e98fd608..f6e7b550 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -284,8 +284,10 @@ void xgi_driver_preclose(struct drm_device * dev, struct drm_file * filp)
{
struct xgi_info * info = dev->dev_private;
- xgi_pcie_free_all(info, filp);
- xgi_fb_free_all(info, filp);
+ mutex_lock(&info->dev->struct_mutex);
+ xgi_free_all(info, &info->pcie_heap, filp);
+ xgi_free_all(info, &info->fb_heap, filp);
+ mutex_unlock(&info->dev->struct_mutex);
}