add missing lock

main
Alan Hourihane 2007-11-05 10:03:26 +00:00
parent d0956339e3
commit 71385d6f75
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {