linux-stable-rt/drivers/leds
Greg Kroah-Hartman 0b00fc5851 LEDS: fix race in device_create
There is a race from when a device is created with device_create() and
then the drvdata is set with a call to dev_set_drvdata() in which a
sysfs file could be open, yet the drvdata will be NULL, causing all
sorts of bad things to happen.

This patch fixes the problem by using the new function,
device_create_drvdata().

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-20 13:31:55 -07:00
..
Kconfig leds: Add default-on trigger 2008-04-25 00:06:52 +01:00
Makefile leds: Add default-on trigger 2008-04-25 00:06:52 +01:00
led-class.c LEDS: fix race in device_create 2008-05-20 13:31:55 -07:00
led-core.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
led-triggers.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-ams-delta.c
leds-atmel-pwm.c
leds-clevo-mail.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-cm-x270.c
leds-cobalt-qube.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-cobalt-raq.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-corgi.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-fsg.c leds: Add new driver for the LEDs on the Freecom FSG-3 2008-04-24 23:43:09 +01:00
leds-gpio.c leds: enable support for blink_set() platform hook in leds-gpio 2008-04-24 23:37:42 +01:00
leds-h1940.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-hp6xx.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-locomo.c
leds-net48xx.c
leds-s3c24xx.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-spitz.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
leds-wrap.c
leds.h leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
ledtrig-default-on.c leds: Add default-on trigger 2008-04-25 00:06:52 +01:00
ledtrig-heartbeat.c
ledtrig-ide-disk.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00
ledtrig-timer.c leds: Cleanup various whitespace and code style issues 2008-04-24 23:37:42 +01:00