diff options
author | Alan Hourihane <alanh@tungstengraphics.com> | 2007-11-05 10:03:26 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@tungstengraphics.com> | 2007-11-05 10:03:26 +0000 |
commit | 71385d6f75bb3b551e2f8d9f74a4438f0f3da9df (patch) | |
tree | 986627d7692fd5b79b4bd83a7f18428445b92a95 | |
parent | d0956339e322238d2af5d63a2e65405ca3b8c4f8 (diff) |
add missing lock
-rw-r--r-- | linux-core/drm_crtc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index 5bc02206..cad7cd83 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -1575,6 +1575,7 @@ int drm_mode_rmfb(struct drm_device *dev, uint32_t *id = data; int ret = 0; + mutex_lock(&dev->mode_config.mutex); fb = idr_find(&dev->mode_config.crtc_idr, *id); /* TODO check that we realy get a framebuffer back. */ if (!fb || (*id != fb->id)) { |