From: Vasily Khoruzhick Date: Sun, 26 Feb 2012 13:52:02 +0000 (+0300) Subject: pxafb: do console locking before calling fb_blank() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=23f1365677a84f775d374a1d8ca0360257685894;p=deliverable%2Flinux.git pxafb: do console locking before calling fb_blank() Otherwise we hit WARN_CONSOLE_UNLOCKED in do_unblank_screen Signed-off-by: Vasily Khoruzhick Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 1d1e4f175e78..c176561a2222 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #include @@ -730,9 +731,12 @@ static int overlayfb_open(struct fb_info *info, int user) if (user == 0) return -ENODEV; - if (ofb->usage++ == 0) + if (ofb->usage++ == 0) { /* unblank the base framebuffer */ + console_lock(); fb_blank(&ofb->fbi->fb, FB_BLANK_UNBLANK); + console_unlock(); + } return 0; }