Files
linux/drivers
Wolfram Sang faed3150a4 i2c: bail out early when RDWR parameters are wrong
[ Upstream commit 71581562ee ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:12:53 +02:00
..
2021-05-14 09:50:24 +02:00
2021-03-04 11:38:21 +01:00
2020-12-03 10:00:23 +01:00
2021-04-10 13:36:08 +02:00
2021-05-11 14:47:26 +02:00
2020-12-30 11:53:53 +01:00
2021-03-04 11:38:03 +01:00
2021-04-16 11:43:22 +02:00