diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-13 12:41:43 +0800 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-16 10:01:52 +0800 |
commit | bbd43a37ec7a02e81dc0afb2c6194957518a904b (patch) | |
tree | 1fe3b8d3c0e3c09a866c60944304759ef8262397 /scripts/gdb/linux/utils.py | |
parent | ddec8e9e90cea8e8430b04a01adce7fb196d95c6 (diff) |
platform/chrome: cros_ec_spi: drop BUG_ON() if `din` isn't large enough
It is overkill to crash the kernel if the `din` buffer is going to full
or overflow.
Drop the BUG_ON() and return -EINVAL instead.
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20220513044143.1045728-8-tzungbi@kernel.org
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions