aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <[email protected]>2022-05-13 12:41:41 +0800
committerTzung-Bi Shih <[email protected]>2022-05-16 10:01:51 +0800
commit8bff946c4199fd79f43dbff93c030b58b01bed65 (patch)
treeaec1da05164a4cd61fd2e67975fe1a2f7d6345ab /lib/test_fortify/write_overflow-strlcpy-src.c
parent20a264c97bc8c17d3a7dd7e8d0f72dc57b02c75e (diff)
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 <[email protected]> Signed-off-by: Tzung-Bi Shih <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions