drm: Potential use-after-free on error path.