[PATCH 5.4 116/270] drm/radeon: fix array out-of-bounds read and write issues