diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2017-10-22 01:03:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-08 14:26:50 +0100 |
commit | f53459c00871a7c3db5b69b49d840ca9d497a695 (patch) | |
tree | 8681cb2fabc0ae2344c867c885dc55cdccd6696a /drivers/vme | |
parent | d4035a8c1ff7288af9e47d6d05384f14c9308ea1 (diff) |
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>
Diffstat (limited to 'drivers/vme')
0 files changed, 0 insertions, 0 deletions