kernel-fxtec-pro1x/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
Makefile
w1.c w1: introduce an ability to specify microseconds bus scanning intervals 2015-05-24 12:08:59 -07:00
w1.h
w1_family.c
w1_family.h w1: support auto-load of w1_bq27000 module. 2014-11-26 19:09:02 -08:00
w1_int.c
w1_int.h
w1_io.c
w1_log.h
w1_netlink.c w1: avoid potential u16 overflow 2014-11-26 19:09:01 -08:00
w1_netlink.h