]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
backlight: lcd: Fix race condition during register
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 6 Jul 2016 17:33:05 +0000 (19:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:01:06 +0000 (09:01 +0100)
commit7f213c377aaf7f36f0d523446a985462291cc474
tree04275ffbc3812b13961cc3f923e1c788ad1ca392
parent637661fadb01d7f33c549fa1506848a250a4b1d6
backlight: lcd: Fix race condition during register

[ Upstream commit cc21942bce652d1a92dae85b785378256e1df1f7 ]

Once device_register is called for a device its attributes might be
accessed. As the callbacks of a lcd device's attributes make use of the
lcd_ops, the respective member must be setup before calling
device_register.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/backlight/lcd.c