diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2025-09-02 15:40:50 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-03 23:27:56 +0300 |
commit | 467e00b30dfe75c4cfc2197ceef1fddca06adc25 (patch) | |
tree | c328dbdd57df7576f3f55b82559054af25ff578b /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 3ebf766c35464ebdeefb6068246267147503dc04 (diff) | |
download | linux-467e00b30dfe75c4cfc2197ceef1fddca06adc25.tar.xz |
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>
(cherry picked from commit 1ee9d1a0962c13ba5ab7e47d33a80e3b8dc4b52e)
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions