linux/drivers/w1
Dan Carpenter 0c6d5c89a1 w1: use correct lock on error in w1_seq_show()
I noticed there was a problem here because Smatch complained:

	drivers/w1/slaves/w1_therm.c:416 w1_seq_show() warn:
	inconsistent returns 'mutex:&sl->master->mutex'.
	  Locked on:   line 416
	  Unlocked on: line 413

The problem is that we lock ->mutex but we unlock ->bus_mutex on error.
David Fries says that ->bus_mutex is correct and ->mutex is incorrect.

Fixes: d9411e57dc ('w1: Add support for DS28EA00 sequence to w1-therm')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-06-12 16:58:33 -07:00
..
masters w1: ds2482: Add i2c module alias name 2015-06-01 10:29:50 +09:00
slaves w1: use correct lock on error in w1_seq_show() 2015-06-12 16:58:33 -07:00
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile
w1_family.c w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_family.h w1: support auto-load of w1_bq27000 module. 2014-11-26 19:09:02 -08:00
w1_int.c w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_int.h
w1_io.c w1: format for DocBook and fixes 2014-02-07 15:40:18 -08:00
w1_log.h w1: use pr_* instead of printk 2014-06-19 17:46:51 -07:00
w1_netlink.c w1: avoid potential u16 overflow 2014-11-26 19:09:01 -08:00
w1_netlink.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00
w1.c w1: introduce an ability to specify microseconds bus scanning intervals 2015-05-24 12:08:59 -07:00
w1.h w1: optional bundling of netlink kernel replies 2014-05-27 13:56:21 -07:00