]> git.kernelconcepts.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:36:11 +0000 (09:36 -0800)
commit3f199a7d6f2c769131f1c0dda2eb9b30d1e21617
tree33f26d2d68d5ce517d337d34f3a225d384da8998
parent627afd48f8d28f14271b9ccf3b1f5d3e77237e2c
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