diff options
author | 2024-05-29 21:19:53 +0800 | |
---|---|---|
committer | 2024-05-30 11:29:10 +0200 | |
commit | 2ba4746b418dcffadb3b135657fea8d3e62b4c30 (patch) | |
tree | e919947b90d2b82a0c0efc2d9e76dd6008fd7031 /tools/perf/scripts/python | |
parent | gpiolib: cdev: Refactor allocation of linereq events kfifo (diff) | |
download | wireguard-linux-2ba4746b418dcffadb3b135657fea8d3e62b4c30.tar.xz wireguard-linux-2ba4746b418dcffadb3b135657fea8d3e62b4c30.zip |
gpiolib: cdev: Cleanup kfifo_out() error handling
The handling of kfifo_out() errors in read functions obscures any error.
The error condition should never occur but, while a ret is set to -EIO, it
is subsequently ignored and the read functions instead return the number
of bytes copied to that point, potentially masking the fact that any error
occurred.
Log a warning and return -EIO in the case of a kfifo_out() error to make
it clear something very odd is going on here.
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/20240529131953.195777-4-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions