]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
Merge tag 'amd-drm-next-5.19-2022-05-18' of https://gitlab.freedesktop.org/agd5f...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_cs.c
index 2982b543c27fd58a9fa5e2234bd0730f31f2fdfa..e552a20048680f31f00546013a768e9dd797c354 100644 (file)
@@ -545,7 +545,8 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p,
                                        GFP_KERNEL | __GFP_ZERO);
                if (!e->user_pages) {
                        DRM_ERROR("kvmalloc_array failure\n");
-                       return -ENOMEM;
+                       r = -ENOMEM;
+                       goto out_free_user_pages;
                }
 
                r = amdgpu_ttm_tt_get_user_pages(bo, e->user_pages);
This page took 0.033029 seconds and 4 git commands to generate.