diff options
author | Nuno Sá <nuno.sa@analog.com> | 2021-09-20 11:00:47 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-09-25 16:01:06 +0100 |
commit | 9da1b86865ab4376408c58cd9fec332c8bdb5c73 (patch) | |
tree | 460c9bf2cec6325e9682cbbcdf568e167fc62062 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 8167c9a375ccceed19048ad9d68cb2d02ed276e0 (diff) |
iio: adis16475: fix deadlock on frequency set
With commit 39c024b51b560
("iio: adis16475: improve sync scale mode handling"), two deadlocks were
introduced:
1) The call to 'adis_write_reg_16()' was not changed to it's unlocked
version.
2) The lock was not being released on the success path of the function.
This change fixes both these issues.
Fixes: 39c024b51b560 ("iio: adis16475: improve sync scale mode handling")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210920090047.74903-1-nuno.sa@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions