drm: fix drm_mode_getconnector() locking imbalance regression
authorTommi Rantala <tt.rantala@gmail.com>
Fri, 3 Apr 2015 07:45:29 +0000 (10:45 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 8 Apr 2015 04:32:01 +0000 (14:32 +1000)
commit04bdf441787a385487fb7b08d9a3f35a1271b474
tree092a39a156da65a66ddfb7bf191707e8c3dfa6d2
parentf22e6e847115abc3a0e2ad7bb18d243d42275af1
drm: fix drm_mode_getconnector() locking imbalance regression

Regression in commit 2caa80e72b57c6216aec6f6a11fcfb4fec46daa0
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun Feb 22 11:38:36 2015 +0100

    drm: Fix deadlock due to getconnector locking changes

If the drm_connector_find() call returns NULL, we should no longer
call drm_modeset_unlock() to avoid locking imbalance.

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c