kernel_optimize_test/drivers/uio
Greg Kroah-Hartman 43691da4ce UIO: 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: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-20 13:31:55 -07:00
..
Kconfig UIO: Implement a UIO interface for the SMX Cryptengine 2008-04-19 19:10:18 -07:00
Makefile UIO: Implement a UIO interface for the SMX Cryptengine 2008-04-19 19:10:18 -07:00
uio_cif.c UIO: Remove needless PCI_DEVICE_ID definition from uio_cif.c 2008-04-19 19:10:18 -07:00
uio_smx.c UIO: Implement a UIO interface for the SMX Cryptengine 2008-04-19 19:10:18 -07:00
uio.c UIO: fix race in device_create 2008-05-20 13:31:55 -07:00