Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mx3fb: fix regression with uninitalized fb_info->mm_lock mutex

Remove call to the mx3fb_set_par() and the mx3fb_blank() before the
register_framebuffer().

This fixes a problem with uninitialized the fb_info->mm_lock mutex
introduced by the commit 537a1bf059f " fbdev: add mutex for fb_mmap
locking"

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Krzysztof Helt and committed by
Linus Torvalds
016d3569 afecb0d0

-5
-5
drivers/video/mx3fb.c
··· 1365 1365 init_completion(&mx3fbi->flip_cmpl); 1366 1366 disable_irq(ichan->eof_irq); 1367 1367 dev_dbg(mx3fb->dev, "disabling irq %d\n", ichan->eof_irq); 1368 - ret = mx3fb_set_par(fbi); 1369 - if (ret < 0) 1370 - goto esetpar; 1371 - 1372 - mx3fb_blank(FB_BLANK_UNBLANK, fbi); 1373 1368 1374 1369 dev_info(dev, "registered, using mode %s\n", fb_mode); 1375 1370