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)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 2 Sep 2011 18:21:21 +0000 (18:21 +0000)
commit4a47a0e09c504e3ce0ccdb405411aefc5b09deb8
tree32e0067576ef3c70bceb8747b763744e21decf13
parent9e769ff3f585db8f978f9113be83d36c7e3965dd
fb: sh-mobile: Fix deadlock risk between lock_fb_info() and console_lock()

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>
Cc: stable@kernel.org
drivers/video/sh_mobile_hdmi.c