w1: remove race with sysfs file creation
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 20:24:32 +0000 (13:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 17:55:03 +0000 (10:55 -0700)
commit47eba33a0997fc7362ae41cf28cea687e28bd731
treed20f1127549aca2a1add4f9ea02c919cb7549aea
parent3e1026b3fa2f61d33ce6a9e42a22398cc4ab8e58
w1: remove race with sysfs file creation

W1 slave sysfs files are created _after_ userspace is notified that the
device has been added to the system.  Fix that race by moving the
creation/remove of the files to the bus notifier that is there for doing
this type of thing.

Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1.c
This page took 0.026229 seconds and 5 git commands to generate.