[PATCH 5.16 0407/1017] drm/panfrost: Check for error num after setting mask