add missing lock
parent
d0956339e3
commit
71385d6f75
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue