summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorPerry Yuan <perry.yuan@amd.com>2026-09-10 17:13:39 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-10-15 12:45:54 -0400
commit3c516a5646285442e1cd71dff2584b77eb4fc421 (patch)
tree3691a522da9966f9676029802e4e92dfc18f7148 /scripts/basic/split-include.c
parenta2eae9f4fa1b07f8e6e61b48931228da051943f0 (diff)
downloadlinux-3c516a5646285442e1cd71dff2584b77eb4fc421.tar.gz
linux-3c516a5646285442e1cd71dff2584b77eb4fc421.zip
drm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl
When amdgpu_hmm_range_alloc() fails amdgpu_gem_userptr_ioctl() returns -ENOMEM right away and skips the cleanup every other error path goes through. The GEM object, the bo->parent reference on the VM root and the MMU notifier registration are all left behind. Use release_object here, not user_pages_done, range is still NULL at this point. Fixes: e095b55155ef ("drm/amdgpu: use user provided hmm_range buffer in amdgpu_ttm_tt_get_user_pages") Signed-off-by: Perry Yuan <perry.yuan@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit bbe739e407a542073ec1a7872b14843566b4919e) Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions