diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-10 11:51:56 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-24 09:58:58 +0100 |
commit | 69920338f8130da929ade6f93e6fa3e0e68433ee (patch) | |
tree | 2756984d79627a1b8b7172a79c21d79d1d56efe6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2d13f801f1a67e9e19ccb810dc4f56870f4e9704 (diff) |
gpiolib: sanitize the return value of gpio_chip::request()
The return value of the request() callback may be propagated to
user-space. If a bad driver returns a positive number, it may confuse
user programs. Tighten the API contract and check for positive numbers
returned by GPIO controllers.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250210-gpio-sanitize-retvals-v1-2-12ea88506cb2@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions