]> git.itanic.dy.fi Git - linux-stable/commit
backlight: fix oops in __mutex_lock_slowpath during head /sys/class/graphics/fb0/*
authorMichael Hanselmann <linux-kernel@hansmi.ch>
Mon, 25 Sep 2006 23:25:07 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:26 +0000 (13:23 -0700)
commit34a1fb477e6020b245f09831030619fd7518ad46
tree2144b9b0f9df3c75840e0b0c16940a7781dceda1
parent45aa989ccaf46972daeca0dd12e98f7d89f73fc7
backlight: fix oops in __mutex_lock_slowpath during head /sys/class/graphics/fb0/*

Seems like not all drivers use the framebuffer_alloc() function and won't
have an initialized mutex.  But those don't have a backlight, anyway.

Signed-off-by: Michael Hanselmann <linux-kernel@hansmi.ch>
Cc: Olaf Hering <olaf@aepfle.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Daniel R Thompson <daniel.thompson@st.com>
Cc: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/fbsysfs.c