Skip to content
Commit 71581562 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

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: default avatar <syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+ffb0b3ffa6cfbc7d7b3f@syzkaller.appspotmail.com>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent fd6c3f45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment