[PATCH 6.1 172/417] drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()