diff options
author | Kent Gibson <warthog618@gmail.com> | 2024-05-10 14:53:42 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-05-10 16:38:27 +0200 |
commit | ee0166b637a5e376118e9659e5b4148080f1d27e (patch) | |
tree | f64fcc73ef03a65eaf151c830743009509cb84fe /sound/pci/emu10k1/emu10k1_main.c | |
parent | 02f6b0e1ec7e0e7d059dddc893645816552039da (diff) |
gpiolib: cdev: fix uninitialised kfifo
If a line is requested with debounce, and that results in debouncing
in software, and the line is subsequently reconfigured to enable edge
detection then the allocation of the kfifo to contain edge events is
overlooked. This results in events being written to and read from an
uninitialised kfifo. Read events are returned to userspace.
Initialise the kfifo in the case where the software debounce is
already active.
Fixes: 65cff7046406 ("gpiolib: cdev: support setting debounce")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240510065342.36191-1-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'sound/pci/emu10k1/emu10k1_main.c')
0 files changed, 0 insertions, 0 deletions