From: Uwe Kleine-König Date: Wed, 24 Nov 2010 20:57:14 +0000 (-0800) Subject: backlight: grab ops_lock before testing bd->ops X-Git-Tag: v2.6.37-rc4~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d73578e053b981c3611e5a211534290d24a5eb;p=pandora-kernel.git backlight: grab ops_lock before testing bd->ops 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 Acked-by: Richard Purdie Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed