diff options
author | 2020-07-06 14:02:57 +0300 | |
---|---|---|
committer | 2020-07-22 14:51:54 +0100 | |
commit | 65afb0932a81c1de719ceee0db0b276094b10ac8 (patch) | |
tree | 477814fe774896e48c14da4e1ce416bfe3ef7c56 /tools/perf/scripts/python | |
parent | Merge branch 'ib-5.8-tcb' into HEAD (diff) | |
download | wireguard-linux-65afb0932a81c1de719ceee0db0b276094b10ac8.tar.xz wireguard-linux-65afb0932a81c1de719ceee0db0b276094b10ac8.zip |
iio: dac: ad5592r: fix unbalanced mutex unlocks in ad5592r_read_raw()
There are 2 exit paths where the lock isn't held, but try to unlock the
mutex when exiting. In these places we should just return from the
function.
A neater approach would be to cleanup the ad5592r_read_raw(), but that
would make this patch more difficult to backport to stable versions.
Fixes 56ca9db862bf3: ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
Reported-by: Charles Stanhope <charles.stanhope@gmail.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions