w1: hold bus_mutex in netlink and search
authorDavid Fries <David@Fries.net>
Thu, 16 Jan 2014 04:29:26 +0000 (22:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:40:18 +0000 (15:40 -0800)
commitd3a8a9dbb903c73a7ec2deae4c9b7d74b6834f4c
tree49128d16abf121d8ae8c555a17a1339a09ff7585
parentb3be177a19f0f9e4f0deb473cef0e95e1254f2e9
w1: hold bus_mutex in netlink and search

The bus_mutex needs to be taken to serialize access to a specific bus.
netlink wasn't updated when bus_mutex was added and was calling
without that lock held, and not all of the masters were holding the
bus_mutex in a search.  This was causing the ds2490 hardware to stop
responding when both netlink and /sys slaves were executing bus
commands at the same time.

Signed-off-by: David Fries <David@Fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/ds1wm.c
drivers/w1/masters/ds2490.c
drivers/w1/w1_netlink.c