From: Alexey Khoroshilov Date: Tue, 6 May 2014 21:26:04 +0000 (+0400) Subject: w1: do not unlock unheld list_mutex in __w1_remove_master_device() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~38^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f104644ec27ce5bbb36e950eb426dba9a3ad44;p=pandora-kernel.git w1: do not unlock unheld list_mutex in __w1_remove_master_device() 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 Acked-by: David Fries Acked-by: Evgeniy Polyakov Cc: stable # 3.15 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed