drm/amdkfd: Guard m->cp_hqd_eop_control setting by q->eop_ring_buffer_size

To avoid wraparound if the value is 0.

Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit c0cae35661)
Cc: stable@vger.kernel.org
This commit is contained in:
Xiaogang Chen 2026-06-16 17:18:59 -05:00 • committed by Alex Deucher
commit 8cd2ea7bab
5 changed files with 10 additions and 10 deletions