[PATCH 5.4 111/340] drm/amdgpu: Prevent shift wrapping in amdgpu_read_mask()