diff options
author | Dave Airlie <airlied@linux.ie> | 2007-11-04 11:01:27 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-11-04 11:01:27 +1100 |
commit | a2e8e294d8e5d7cf179cb562745c1b613ff60e52 (patch) | |
tree | a6fe03281577deb7dbc73ed5e4251171826c8a53 /linux-core | |
parent | 998d120a47cab85e985b24932fe8f4682f5f78e9 (diff) |
drm: fix oops since user objects..
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_bo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c index ea680a17..4f95f236 100644 --- a/linux-core/drm_bo.c +++ b/linux-core/drm_bo.c @@ -2213,7 +2213,6 @@ int drm_bo_driver_finish(struct drm_device * dev) if (list_empty(&bm->unfenced)) { DRM_DEBUG("Unfenced list was clean\n"); } - out: #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,15)) unlock_page(bm->dummy_read_page); @@ -2221,6 +2220,8 @@ int drm_bo_driver_finish(struct drm_device * dev) ClearPageReserved(bm->dummy_read_page); #endif __free_page(bm->dummy_read_page); + +out: mutex_unlock(&dev->struct_mutex); return ret; } |