kernel-fxtec-pro1x/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
led-class.c LEDS: fix race in device_create 2008-05-20 13:31:55 -07:00
led-core.c
led-triggers.c
leds-ams-delta.c
leds-atmel-pwm.c
leds-clevo-mail.c
leds-cm-x270.c
leds-cobalt-qube.c
leds-cobalt-raq.c
leds-corgi.c
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-hp6xx.c
leds-locomo.c
leds-net48xx.c
leds-s3c24xx.c
leds-spitz.c
leds-wrap.c
leds.h
ledtrig-default-on.c leds: Add default-on trigger 2008-04-25 00:06:52 +01:00
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c
Makefile leds: Add default-on trigger 2008-04-25 00:06:52 +01:00