]> git.baikalelectronics.ru Git - kernel.git/commit
drm: fix error recovery path in drm_crtc_helper_set_mode
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Tue, 29 Oct 2013 15:09:44 +0000 (11:09 -0400)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 04:27:50 +0000 (14:27 +1000)
commit7a3de9e88c331d4121d81e9be128909ce6921b16
treef86d9ed4a6760e6ea5179e41b4fdc6121a1e8e17
parent0fc7608aaf57a9342916bfc14349715e1cf4cffa
drm: fix error recovery path in drm_crtc_helper_set_mode

There is no need to save or restore hwmode field, because by
the time this function sets this field, it cannot fail any more.
However, we should save old enabled field because if
the function fails, we want to return with unchanged CRTC.

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c