[PATCH 5.10 266/599] drm/panfrost: Check for error num after setting mask