]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6c12f3b0116d60bf2f176e6146ec74b78b47aee
treed20f1127549aca2a1add4f9ea02c919cb7549aea
parentd3049f4ab41d44aa32727cad32ec6d37c7c9803b
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