OMAPFB: LL pointer dereference because of uninitialized mutex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to add support for a omap3 board.

But I get a NULL pointer dereference during initialization of the lcd
panel driver because framebufferInfo->mm_lock wasn't initialized.

Code of the lcd driver: http://pastebin.com/m44ccc56d (nothing special)

Stack trace:
__mutex_lock_slowpath()
mutex_lock()
set_fb_fix()
omapfb_do_probe()
devkit8000_panel_probe() << my probe function
platform_drv_probe()
...

It get's initialized in register_framebuffer() but in my case the
probe function gets called before register_framebuffer().

Once I added the missing inits to framebuffer_alloc()
(drivers/video/fbsysfs.c) it works fine:
mutex_init(&info->lock);
mutex_init(&info->mm_lock);

How I'm intended to fix this?
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux