Home
last modified time | relevance | path

Searched hist:f30ef3e8376380c5be9de121517c713527cf0813 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpio/
H A Dgpiolib-cdev.cdiff f30ef3e8376380c5be9de121517c713527cf0813 Tue Jul 07 23:15:53 CDT 2020 Kent Gibson <warthog618@gmail.com> 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>