summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2024-05-10 09:53:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-05-17 13:02:26 +0300
commit883e4bbf06eb5fb7482679e4edb201093e9f55a2 (patch)
treea589e57bad0255614fe62389864cb8d9880a14ef /Kbuild
parent309364bc3205b36c2dd6a13ac04d1ea8b681e193 (diff)
downloadlinux-883e4bbf06eb5fb7482679e4edb201093e9f55a2.tar.xz
gpiolib: cdev: fix uninitialised kfifo
[ Upstream commit ee0166b637a5e376118e9659e5b4148080f1d27e ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions