Only allow creator to change shared buffer mask.

This commit is contained in:
Thomas Hellstrom 2007-10-17 10:57:12 +02:00
parent 086c058a41
commit bb29ba7fa7

View file

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