[PATCH 6.7 267/641] drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()