Greg Kroah-Hartman c5fb920aec s390: 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: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-20 13:31:56 -07:00
..
2006-12-08 15:53:52 +01:00
2007-10-17 08:42:52 -07:00
2007-10-17 08:42:52 -07:00
2006-07-12 16:41:55 +02:00
2007-02-05 21:18:53 +01:00
2007-04-27 16:01:45 +02:00
2007-05-10 15:45:52 +02:00
2006-04-28 08:33:48 -07:00
2007-07-17 13:36:19 +02:00
2007-07-17 13:36:19 +02:00
2008-05-20 13:31:56 -07:00