]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9604d7a18d72badd85adf57e5b578620f81624e
tree49128d16abf121d8ae8c555a17a1339a09ff7585
parentf46c406339e86f6d91fe18737d18e1da016026d0
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