summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-24 12:57:14 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-09 13:33:16 -0800
commit77e8afe23ec3dab432698844530640e6e4517a5d (patch)
tree3490ae29b625de7ae02afbabfab8ede31e656685 /kernel
parent4d88db53a9977e16cfa9b7315893401ff6eac7ee (diff)
downloadlinux-3.10-77e8afe23ec3dab432698844530640e6e4517a5d.tar.gz
linux-3.10-77e8afe23ec3dab432698844530640e6e4517a5d.tar.bz2
linux-3.10-77e8afe23ec3dab432698844530640e6e4517a5d.zip
backlight: grab ops_lock before testing bd->ops
commit d1d73578e053b981c3611e5a211534290d24a5eb upstream. According to the comment describing ops_lock in the definition of struct backlight_device and when comparing with other functions in backlight.c the mutex must be hold when checking ops to be non-NULL. Fixes a problem added by c835ee7f4154992e6 ("backlight: Add suspend/resume support to the backlight core") in Jan 2009. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions