Wrong user data may cause warning in i2c_transfer(), ex: zero msgs. Userspace should not be able to trigger warnings, so this patch adds validation checks for user data in compact ioctl to prevent reported warnings
Pavel Skripkin (1): i2c: validate user data in compat ioctl
drivers/i2c/i2c-dev.c | 3 +++ 1 file changed, 3 insertions(+)