summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/drm_crtc.c1
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)) {