summaryrefslogtreecommitdiffstats
path: root/crypto/cast6_generic.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2021-03-12 12:57:34 +0100
committerWolfram Sang <wsa@kernel.org>2021-03-18 12:15:29 +0100
commit71581562ee36032d2d574a9b23ad4af6d6a64cf7 (patch)
tree0caff08400a9805f787ae93d8c8f9d87e256ab9d /crypto/cast6_generic.c
parenti2c: i2c-scmi: Drop unused ACPI_MODULE_NAME definition (diff)
downloadlinux-71581562ee36032d2d574a9b23ad4af6d6a64cf7.tar.xz
linux-71581562ee36032d2d574a9b23ad4af6d6a64cf7.zip
i2c: bail out early when RDWR parameters are wrong
The buggy parameters currently get caught later, but emit a noisy WARN. Userspace should not be able to trigger this, so add similar checks much earlier. Also avoids some unneeded code paths, of course. Apply kernel coding stlye to a comment while here. Reported-by: syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com Tested-by: syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'crypto/cast6_generic.c')
0 files changed, 0 insertions, 0 deletions