]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/amdgpu: Fix missing error return on kzalloc failure
authorColin Ian King <colin.i.king@gmail.com>
Tue, 2 Sep 2025 12:40:50 +0000 (13:40 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Sep 2025 19:57:10 +0000 (15:57 -0400)
commit1ee9d1a0962c13ba5ab7e47d33a80e3b8dc4b52e
treef830e1bdbdb87d48dbb0227580bd5f071f8ed2bc
parent98fb1d5596ff0499c784180b2e39a841049c4d90
drm/amd/amdgpu: Fix missing error return on kzalloc failure

Currently the kzalloc failure check just sets reports the failure
and sets the variable ret to -ENOMEM, which is not checked later
for this specific error. Fix this by just returning -ENOMEM rather
than setting ret.

Fixes: 4fb930715468 ("drm/amd/amdgpu: remove redundant host to psp cmd buf allocations")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c