]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fixup locking WARNINGs in drm_mode_config_reset
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 29 Jul 2015 06:32:43 +0000 (08:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Aug 2015 12:13:02 +0000 (14:13 +0200)
commit8ea5cd828fbdffc95bc82592145f46f355c4bfeb
tree4feca59905d4ed832770b9a59bab3904692fbbf0
parent719f82e56287f291c0811052013e4514b41aef50
drm: Fixup locking WARNINGs in drm_mode_config_reset

With

commit adb0550a31ad980d538ad3368a7300da12f0da3d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jul 9 23:44:28 2015 +0200

    drm: Check locking in drm_for_each_connector

we started checking the locking in drm_for_each_connector but somehow
I totally missed drm_mode_config_reset. There's no problem there since
this function should only be called in single-threaded contexts
(driver load or resume), so just wrap the loop with the right lock.

v2: Drink coffee and all that ...

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_crtc.c