drm: drm_minor_register(): Clean up debugfs on failure
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:04 +0000 (23:56 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Jan 2017 07:56:50 +0000 (08:56 +0100)
commita67834f8bfa1e2f48bb27d07b9a552ba7c3af82a
treee0a0a661ca73e50356235eda4b6df75f5113a1ed
parent086f2e5cde747dcae800b2d8b0ac7741a8c6fcbe
drm: drm_minor_register(): Clean up debugfs on failure

Call drm_debugfs_cleanup() in case drm_debugfs_init() fails to
cover for failure in the drm_driver.debugfs_init callback.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-3-noralf@tronnes.org
drivers/gpu/drm/drm_drv.c