Bob Zhou 8112fa72b7 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:32:32 +02:00
..
2023-09-19 12:20:24 +02:00
2020-08-11 11:58:31 +10:00
2020-08-06 14:27:31 -07:00
2024-01-15 18:48:07 +01:00
2023-05-17 11:47:38 +02:00
2020-09-21 10:45:08 +02:00
2022-10-26 13:25:25 +02:00