diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-10 11:52:00 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-24 10:02:36 +0100 |
commit | dfeb70c86d637d49af9313245e6b1f2ead08ce9b (patch) | |
tree | be849d28df202103923529c763bf779248f1ab2a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 74abd086d2ee5ef10f68848cfe39e271ac798685 (diff) |
gpiolib: sanitize the return value of gpio_chip::direction_output()
The return value of the direction_output() callback may be propagated to
user-space. As per the API contract it can only return 0 or a negative
error number. Add a wrapper around the callback calls that filters out
anything else.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250210-gpio-sanitize-retvals-v1-6-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