aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Kent Gibson <warthog618@gmail.com> 2024-04-04 11:33:28 +0200
committerGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2024-04-04 18:57:08 +0200
commit83092341e15d0dfee1caa8dc502f66c815ccd78a (patch)
tree25798b039981a6e2897c624509d19e399e9bd988 /scripts
parentgpio: cdev: check for NULL labels when sanitizing them for irqs (diff)
downloadlinux-83092341e15d0dfee1caa8dc502f66c815ccd78a.tar.gz
linux-83092341e15d0dfee1caa8dc502f66c815ccd78a.tar.bz2
linux-83092341e15d0dfee1caa8dc502f66c815ccd78a.zip
gpio: cdev: fix missed label sanitizing in debounce_setup()
When adding sanitization of the label, the path through edge_detector_setup() that leads to debounce_setup() was overlooked. A request taking this path does not allocate a new label and the request label is freed twice when the request is released, resulting in memory corruption. Add label sanitization to debounce_setup(). Cc: stable@vger.kernel.org Fixes: b34490879baa ("gpio: cdev: sanitize the label before requesting the interrupt") Signed-off-by: Kent Gibson <warthog618@gmail.com> [Bartosz: rebased on top of the fix for empty GPIO labels] Co-developed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions