diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-10 13:51:55 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-02-17 13:50:50 +0300 |
commit | 9d846b1aebbe488f245f1aa463802ff9c34cc078 (patch) | |
tree | 6918ab75b1d9b32c849dfb0154b376de1cfd064c /tools/perf/scripts/python/syscall-counts.py | |
parent | 0ad2507d5d93f39619fc42372c347d6006b64319 (diff) | |
download | linux-9d846b1aebbe488f245f1aa463802ff9c34cc078.tar.xz |
gpiolib: check the return value of gpio_chip::get_direction()
As per the API contract - gpio_chip::get_direction() may fail and return
a negative error number. However, we treat it as if it always returned 0
or 1. Check the return value of the callback and propagate the error
number up the stack.
Cc: stable@vger.kernel.org
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250210-gpio-sanitize-retvals-v1-1-12ea88506cb2@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions