diff options
author | 2022-05-13 12:41:43 +0800 | |
---|---|---|
committer | 2022-05-16 10:01:52 +0800 | |
commit | bbd43a37ec7a02e81dc0afb2c6194957518a904b (patch) | |
tree | 1fe3b8d3c0e3c09a866c60944304759ef8262397 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | platform/chrome: cros_ec_spi: drop unneeded BUG_ON() (diff) | |
download | linux-dev-bbd43a37ec7a02e81dc0afb2c6194957518a904b.tar.xz linux-dev-bbd43a37ec7a02e81dc0afb2c6194957518a904b.zip |
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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions