Greg Kroah-Hartman 8b485877e0 fbdev: 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: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-05-20 13:31:53 -07:00
..
2008-05-20 13:31:53 -07:00
2008-03-10 18:01:20 -07:00
2008-02-03 17:31:49 +02:00
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:18 -07:00
2007-07-31 15:39:39 -07:00
2008-04-28 08:58:38 -07:00
2008-04-28 08:58:35 -07:00
2007-10-18 14:37:17 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-02-03 17:31:49 +02:00
2008-05-18 13:28:49 -07:00
2007-11-29 09:24:52 -08:00
2008-03-19 18:53:37 -07:00
2008-02-06 10:41:15 -08:00
2008-05-08 21:37:30 -07:00
2007-11-14 18:45:42 -08:00
2008-04-28 08:58:35 -07:00
2008-02-06 10:41:16 -08:00
2008-05-08 21:37:30 -07:00
2008-04-28 08:58:41 -07:00
2007-10-16 09:43:20 -07:00
2008-02-06 10:41:17 -08:00
2008-04-28 08:58:38 -07:00
2007-10-16 09:43:14 -07:00
2008-03-04 16:35:13 -08:00
2007-10-16 09:43:22 -07:00
2008-05-08 21:37:30 -07:00
2007-10-16 09:43:18 -07:00
2008-04-28 08:58:38 -07:00