tmp_suning_uos_patched/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
led-class.c
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-gpio.c
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
ledtrig-heartbeat.c
ledtrig-ide-disk.c
ledtrig-timer.c
Makefile