OSDN Git Service

drm/amdkfd: Fix the memory overrun
authorMa Jun <Jun.Ma2@amd.com>
Sun, 6 Nov 2022 12:34:27 +0000 (20:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Nov 2022 22:41:41 +0000 (17:41 -0500)
commit4cc16d64b6cdb179a26fb389cae9dce788e88f5d
treed609197d3f8a855bafdbb9b572ad9e0b598ff9b0
parent407a5bdd5513a3617aa3f8a5c738561e157f8d83
drm/amdkfd: Fix the memory overrun

Fix the memory overrun issue caused by wrong array size.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1527133 ("Memory - corruptions")
Fixes: c0cc999f3c32e6 ("drm/amdkfd: Fix the warning of array-index-out-of-bounds")
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c