summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorNuno Sá <nuno.sa@analog.com>2022-09-20 14:28:07 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-23 22:41:11 +0300
commit20228a1d5a55e7db0c6720840f2c7d2b48c55f69 (patch)
tree9fdd00c454114e2355b22697b665b157005378e0 /include/linux/stacktrace.h
parent30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff)
downloadlinux-20228a1d5a55e7db0c6720840f2c7d2b48c55f69.tar.xz
iio: adc: ad_sigma_delta: do not use internal iio_dev lock
Drop 'mlock' usage by making use of iio_device_claim_direct_mode(). This change actually makes sure we cannot do a single conversion while buffering is enable. Note there was a potential race in the previous code since we were only acquiring the lock after checking if the bus is enabled. Fixes: af3008485ea0 ("iio:adc: Add common code for ADI Sigma Delta devices") Signed-off-by: Nuno Sá <nuno.sa@analog.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Cc: <Stable@vger.kernel.org> #No rush as race is very old. Link: https://lore.kernel.org/r/20220920112821.975359-2-nuno.sa@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions