summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modinst
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2024-05-10 09:53:42 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2024-05-10 17:38:27 +0300
commitee0166b637a5e376118e9659e5b4148080f1d27e (patch)
treef64fcc73ef03a65eaf151c830743009509cb84fe /scripts/Makefile.modinst
parent02f6b0e1ec7e0e7d059dddc893645816552039da (diff)
downloadlinux-ee0166b637a5e376118e9659e5b4148080f1d27e.tar.xz
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 'scripts/Makefile.modinst')
0 files changed, 0 insertions, 0 deletions