mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
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>
This commit is contained in:
parent
3e1026b3fa
commit
47eba33a09
1 changed files with 73 additions and 38 deletions
111
drivers/w1/w1.c
111
drivers/w1/w1.c
Loading…
Add table
Add a link
Reference in a new issue