Bob Zhou 5594971e02 drm/amdgpu: add error handle to avoid out-of-bounds
commit 8b2faf1a4f3b6c748c0da36cda865a226534d520 upstream.

if the sdma_v4_0_irq_id_to_seq return -EINVAL, the process should
be stop to avoid out-of-bounds read, so directly return -EINVAL.

Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:28:49 +02:00
..
2023-09-23 10:59:57 +02:00
2019-12-13 08:42:56 +01:00
2020-06-30 15:37:11 -04:00
2021-11-26 10:47:22 +01:00
2023-05-17 11:35:35 +02:00
2020-02-11 04:35:36 -08:00
2022-10-26 13:22:28 +02:00