diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-06-13 16:55:14 +0300 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2024-06-13 18:12:12 +0300 |
commit | 77a714325d09e1527d865dc011ef91c4972ffedd (patch) | |
tree | 1fc7906f59619626a8daa3b6e247fed39e479ba2 /scripts/gdb/linux/tasks.py | |
parent | c2a28647bbb4e0894e8824362410f72b06ac57a4 (diff) | |
download | linux-77a714325d09e1527d865dc011ef91c4972ffedd.tar.xz |
platform/chrome: cros_ec_lpc: Fix error code in cros_ec_lpc_mec_read_bytes()
We changed these functions to returning negative error codes, but this
first error path was accidentally overlooked. It leads to a Smatch
warning:
drivers/platform/chrome/cros_ec_lpc.c:181 ec_response_timed_out()
error: uninitialized symbol 'data'.
Fix this by returning the error code instead of success.
Fixes: 68dbac0a58ef ("platform/chrome: cros_ec_lpc: MEC access can return error code")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/e0b43fb5-ecc8-4fb4-9b76-c06dea8cc4c4@moroto.mountain
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions