linux/drivers/usb/misc
Greg Kroah-Hartman bfd3a5a96c USB: Phidget: 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().  It fixes all 3 phidget drivers, which all have
the same problem.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Sean Young <sean@mess.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-20 13:31:56 -07:00
..
sisusbvga
adutux.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
appledisplay.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
auerswald.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
berry_charge.c
cypress_cy7c63.c
cytherm.c
emi26_fw.h
emi26.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
emi62_fw_m.h
emi62_fw_s.h
emi62.c USB: replace remaining __FUNCTION__ occurrences 2008-04-24 21:16:55 -07:00
ftdi-elan.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
idmouse.c
iowarrior.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
Kconfig USB: Remove EXPERIMENTAL designation from USB misc/ Kconfig entries 2008-04-24 21:16:43 -07:00
ldusb.c USB: remove PICDEM FS USB demo (04d8:000c) device from ldusb 2008-05-14 10:00:29 -07:00
legousbtower.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
Makefile
phidget.c
phidget.h
phidgetkit.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
phidgetmotorcontrol.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
phidgetservo.c USB: Phidget: fix race in device_create 2008-05-20 13:31:56 -07:00
rio500_usb.h
rio500.c
trancevibrator.c USB: fix error handling in trancevibrator 2008-02-21 15:38:51 -08:00
usb_u132.h
usblcd.c USB: remove unnecessary type casting of urb->context 2008-04-24 21:16:55 -07:00
usbled.c
usbtest.c usbtest: comment on why this code "expects" negative and positive errnos 2008-05-14 10:00:29 -07:00
uss720.c