drm/amdgpu: Return -ENOMEM when there is no memory in 'amdgpu_gfx_mqd_sw_init'
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Fri, 21 Jul 2023 09:12:10 +0000 (14:42 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2023 17:36:16 +0000 (13:36 -0400)
commit37c3fc66201376c2cb066bde13b67bb7c181ec2c
treee3664b05b289b0ac53bea552d9f9f0edc3e2989c
parent88dd0b188e21d5cc303516b1d63217077a2d1120
drm/amdgpu: Return -ENOMEM when there is no memory in 'amdgpu_gfx_mqd_sw_init'

Return -ENOMEM, when there is no sufficient dynamically allocated memory
to create MQD backup for ring

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c