]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:58 +0000 (11:17 -0800)
commita6c5c3d9be666548f1db0eeda0ed6df3ee2d39ad
treec6c2a72e7757b3872098a005f84bb9f872b46d20
parent9345f3c7a7f29419dda5dde3047ca8af6cf0c13e
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