X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fcompat_ioctl.c;h=3881610b64384cee634367c3c35d237a4fa2f2aa;hb=32665f2bbfed2e325d37236d9b0071a11a69124e;hp=dc52e13d58e021ac5cf7951d44c66c8e8d9a4993;hpb=db8fbb49df8ae4da155d3b7abf39e79b41f72746;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index dc52e13d58e0..3881610b6438 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -680,7 +680,8 @@ static int do_i2c_rdwr_ioctl(unsigned int fd, unsigned int cmd, struct i2c_msg __user *tmsgs; struct i2c_msg32 __user *umsgs; compat_caddr_t datap; - int nmsgs, i; + u32 nmsgs; + int i; if (get_user(nmsgs, &udata->nmsgs)) return -EFAULT;