diff options
author | 2020-07-08 12:15:53 +0800 | |
---|---|---|
committer | 2020-07-12 10:22:01 +0200 | |
commit | f30ef3e8376380c5be9de121517c713527cf0813 (patch) | |
tree | aa8a58adb18e33acaab8db518e5fb4ec6030e448 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | gpiolib: cdev: rename priv to cdev (diff) | |
download | linux-dev-f30ef3e8376380c5be9de121517c713527cf0813.tar.xz linux-dev-f30ef3e8376380c5be9de121517c713527cf0813.zip |
gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH
Merge separate usage of test_bit/set_bit into test_and_set_bit to remove
the possibility of a race between the test and set.
Similarly test_bit and clear_bit.
In the existing code it is possible for two threads to race past the
test_bit and then set or clear the watch bit, and neither return EBUSY.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions