diff options
author | Kent Gibson <warthog618@gmail.com> | 2024-04-04 11:33:28 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-04-04 18:57:08 +0200 |
commit | 83092341e15d0dfee1caa8dc502f66c815ccd78a (patch) | |
tree | 25798b039981a6e2897c624509d19e399e9bd988 /drivers/pnp | |
parent | b3b95964590a3d756d69ea8604c856de805479ad (diff) |
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 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions