PR sync from: Hongbo Li lihongbo22@huawei.com
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/66WE4QGUE5JB6UKWXKD3BLRKUOOMP2HE/
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

--
2.34.1