Commit 7e4f8e09 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

drm/amd/amdgpu: Fix missing error return on kzalloc failure



[ Upstream commit 467e00b3 ]

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: 4fb93071 ("drm/amd/amdgpu: remove redundant host to psp cmd buf allocations")
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 1ee9d1a0)
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 718c2489
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment