summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2022-05-13 12:41:43 +0800
committerTzung-Bi Shih <tzungbi@kernel.org>2022-05-16 10:01:52 +0800
commitbbd43a37ec7a02e81dc0afb2c6194957518a904b (patch)
tree1fe3b8d3c0e3c09a866c60944304759ef8262397 /fs
parentddec8e9e90cea8e8430b04a01adce7fb196d95c6 (diff)
downloadlinux-bbd43a37ec7a02e81dc0afb2c6194957518a904b.tar.bz2
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 'fs')
0 files changed, 0 insertions, 0 deletions