[PATCH V3] drm: handle error values properly