linux/drivers/w1
Alexey Khoroshilov f53459c008 w1: keep balance of mutex locks and refcnts
w1_therm_eeprom() and w1_DS18B20_precision() decrement THERM_REFCNT
on error paths, while they did not increment it yet.

read_therm() unlocks bus mutex on some error paths,
while it is not acquired.

The patch makes sure all the functions keep the balance in usage of
the mutex and the THERM_REFCNT.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-08 14:26:50 +01:00
..
masters drivers: w1: Extend 1W master driver DS2482 with module option to support PPM/SPU/1WS features 2017-08-28 17:23:29 +02:00
slaves w1: keep balance of mutex locks and refcnts 2017-11-08 14:26:50 +01:00
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile
w1_family.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_int.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_internal.h w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_io.c wire: export w1_touch_bit 2017-10-04 10:29:22 +02:00
w1_netlink.c w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1_netlink.h w1: Add subsystem kernel public interface 2017-06-09 11:54:54 +02:00
w1.c drivers: w1: add hwmon support structures 2017-08-31 18:50:14 +02:00