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)
commit7e99acdcab6b3ea0c0b87445b179c7140ff9a81d
treef86d9ed4a6760e6ea5179e41b4fdc6121a1e8e17
parentfbce40641b6d8df6171775986d5aa4cce30b4e28
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