]> git.baikalelectronics.ru Git - kernel.git/commit
drm_aux-dev: fix error handling in drm_dp_aux_dev_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 29 Jun 2016 21:52:15 +0000 (00:52 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 12:10:57 +0000 (14:10 +0200)
commit852a1cfb4b057bbc92be96dbcf0ec527de5f52c2
treee4939f67791dc69a67d6ad4cec525b5cf9d185b3
parent4408d75bad081aa998fee85f243bdf80b78151b2
drm_aux-dev: fix error handling in drm_dp_aux_dev_init()

If class_create() fails, there is no need for class_destroy().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1467237135-13075-1-git-send-email-khoroshilov@ispras.ru
drivers/gpu/drm/drm_dp_aux_dev.c