]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drm/vmwgfx: Protect from excessive execbuf kernel memory allocations v3
[linux.git] / drivers / gpu / drm / vmwgfx / vmwgfx_execbuf.c
index 260650bb5560aab65c2b4e149e0a1a26a2e62b19..f2d13a72c05d3ef1785422b8b5285536453aecee 100644 (file)
@@ -3835,6 +3835,8 @@ int vmw_execbuf_process(struct drm_file *file_priv,
        struct sync_file *sync_file = NULL;
        DECLARE_VAL_CONTEXT(val_ctx, &sw_context->res_ht, 1);
 
+       vmw_validation_set_val_mem(&val_ctx, &dev_priv->vvm);
+
        if (flags & DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD) {
                out_fence_fd = get_unused_fd_flags(O_CLOEXEC);
                if (out_fence_fd < 0) {