diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-10 11:52:02 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-24 10:02:36 +0100 |
commit | e623c4303ed112a1fc20aec8427ba8407e2842e6 (patch) | |
tree | b87193b1a20af65134e1b72e3a078143f1a6dcaf /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4750ddce95ae8be618e31b0aa51efcf50e23a78e (diff) |
gpiolib: sanitize the return value of gpio_chip::get_direction()
As per the API contract, the get_direction() callback can only
return 0, 1 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-8-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