Files
Alexey Khoroshilov 063579d4c3 w1: do not unlock unheld list_mutex in __w1_remove_master_device()
commit a0f104644e upstream.

w1_process_callbacks() expects to be called with dev->list_mutex held,
but it is the fact only in w1_process(). __w1_remove_master_device()
calls w1_process_callbacks() after it releases list_mutex.

The patch fixes __w1_remove_master_device() to acquire list_mutex
for w1_process_callbacks().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: David Fries <david@fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-30 20:13:53 -07:00
..
2014-02-07 15:40:18 -08:00
2014-02-07 15:40:18 -08:00
2011-08-25 16:25:33 -07:00
2014-02-07 15:40:18 -08:00
2011-08-25 16:25:33 -07:00
2014-02-07 15:40:18 -08:00
2014-02-07 15:40:18 -08:00