drm: Fix error handling in drm_connector_register
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 6 May 2016 12:55:02 +0000 (14:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 May 2016 10:24:51 +0000 (12:24 +0200)
commitfdf2c85f26a656df3c9ef2114ff508a4be26bbff
treebf78c83b45c2197c0f0ef5c27bfcb179595eb19d
parente2d800a3ce1b16a9c25fc6ca91f26df5509ca11d
drm: Fix error handling in drm_connector_register

When debugfs or sysfs registration failed, we failed to clean up the
idr registration. Reorder to fix this.

Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1462539302-27764-1-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_crtc.c