projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086f2e5
)
drm: drm_minor_register(): Clean up debugfs on failure
author
Noralf Trønnes
<noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:04 +0000
(23:56 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 27 Jan 2017 07:56:50 +0000
(08:56 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_drv.c
b/drivers/gpu/drm/drm_drv.c
index
7e24103
..
18c1b2c
100644
(file)
--- a/
drivers/gpu/drm/drm_drv.c
+++ b/
drivers/gpu/drm/drm_drv.c
@@
-221,7
+221,7
@@
static int drm_minor_register(struct drm_device *dev, unsigned int type)
ret = drm_debugfs_init(minor, minor->index, drm_debugfs_root);
if (ret) {
DRM_ERROR("DRM: Failed to initialize /sys/kernel/debug/dri.\n");
-
return ret
;
+
goto err_debugfs
;
}
ret = device_add(minor->kdev);