]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fb: sh-mobile: Fix deadlock risk between lock_fb_info() and console_lock()
authorBruno Prémont <bonbons@linux-vserver.org>
Fri, 2 Sep 2011 17:24:03 +0000 (19:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:43:25 +0000 (09:43 -0800)
commitf39f31b7c70cb84805b4dcae76a9161510c0b01c
treeb30ec5f1e6bd33cc946dbeeefebb224a214671fc
parentb4dac1778497fc43092231647833e32f68fdf54d
fb: sh-mobile: Fix deadlock risk between lock_fb_info() and console_lock()

commit 4a47a0e09c504e3ce0ccdb405411aefc5b09deb8 upstream.

Following on Herton's patch "fb: avoid possible deadlock caused by
fb_set_suspend" which moves lock_fb_info() out of fb_set_suspend()
to its callers, correct sh-mobile's locking around call to
fb_set_suspend() and the same sort of deaklocks with console_lock()
due to order of taking the lock.

console_lock() must be taken while fb_info is already locked and fb_info
must be locked while calling fb_set_suspend().

Signed-off-by: Bruno Prémont <bonbons@linux-vserver.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/sh_mobile_hdmi.c