[PATCH V2] drm: handle error values properly