diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-13 12:41:39 +0800 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-16 10:01:51 +0800 |
commit | c2dcb1b06053a1ccfb73fe84e7b54b92383401cc (patch) | |
tree | 253e28cb483fe1b1977ddc27c5381a1728de3119 /scripts/gdb/linux/utils.py | |
parent | 71d3ae7fb6404c87b498f8b7f86b8271dd74989f (diff) |
platform/chrome: cros_ec_proto: drop BUG_ON() in cros_ec_prepare_tx()
It is overkill to crash the kernel if the given message is oversize.
Drop the BUG_ON() and return -EINVAL instead.
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220513044143.1045728-4-tzungbi@kernel.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions