mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 17:40:11 +01:00
Only allow creator to change shared buffer mask.
This commit is contained in:
parent
086c058a41
commit
bb29ba7fa7
1 changed files with 9 additions and 1 deletions
|
|
@ -1540,8 +1540,16 @@ int drm_bo_handle_validate(struct drm_file * file_priv, uint32_t handle,
|
|||
if (!bo) {
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Only allow creator to change shared buffer mask.
|
||||
*/
|
||||
|
||||
if (bo->base.owner != file_priv) {
|
||||
flags = 0x0;
|
||||
mask = 0x0;
|
||||
}
|
||||
|
||||
ret = drm_bo_do_validate(bo, flags, mask, hint, fence_class,
|
||||
no_wait, rep);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue