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

sm501fb: fix regression with uninitalized fb_info->mm_lock mutex

Remove call to the fb_set_par() 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
afecb0d0 c2cc49a2

-3
-3
drivers/video/sm501fb.c
··· 1540 1540 if (ret) 1541 1541 dev_err(info->dev, "check_var() failed on initial setup?\n"); 1542 1542 1543 - /* ensure we've activated our new configuration */ 1544 - (fb->fbops->fb_set_par)(fb); 1545 - 1546 1543 return 0; 1547 1544 } 1548 1545