From: Bruno Prémont Date: Fri, 2 Sep 2011 17:24:03 +0000 (+0200) Subject: fb: sh-mobile: Fix deadlock risk between lock_fb_info() and console_lock() X-Git-Tag: v3.2-rc1~120^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a47a0e09c504e3ce0ccdb405411aefc5b09deb8;p=pandora-kernel.git 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 Signed-off-by: Guennadi Liakhovetski Signed-off-by: Florian Tobias Schandinat Cc: stable@kernel.org --- Reading git-diff-tree failed