mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 20:40:12 +01:00
add missing lock
This commit is contained in:
parent
d0956339e3
commit
71385d6f75
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue