mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
0b00fc5851
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> |
||
---|---|---|
.. | ||
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 |