mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
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> |
||
|---|---|---|
| .. | ||
| masters | ||
| slaves | ||
| Kconfig | ||
| Makefile | ||
| w1_family.c | ||
| w1_int.c | ||
| w1_internal.h | ||
| w1_io.c | ||
| w1_netlink.c | ||
| w1_netlink.h | ||
| w1.c | ||