diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-13 06:41:41 +0200 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-05-16 04:01:51 +0200 |
commit | 8bff946c4199fd79f43dbff93c030b58b01bed65 (patch) | |
tree | aec1da05164a4cd61fd2e67975fe1a2f7d6345ab /block/blk-mq-sysfs.c | |
parent | platform/chrome: cros_ec_proto: drop BUG_ON() in cros_ec_get_host_event() (diff) | |
download | linux-8bff946c4199fd79f43dbff93c030b58b01bed65.tar.xz linux-8bff946c4199fd79f43dbff93c030b58b01bed65.zip |
platform/chrome: cros_ec_i2c: drop BUG_ON() in cros_ec_pkt_xfer_i2c()
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-6-tzungbi@kernel.org
Diffstat (limited to 'block/blk-mq-sysfs.c')
0 files changed, 0 insertions, 0 deletions