X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fcompat_ioctl.c;h=3881610b64384cee634367c3c35d237a4fa2f2aa;hb=ee693507591942792f9853783e36002ff3a82954;hp=dc52e13d58e021ac5cf7951d44c66c8e8d9a4993;hpb=e20ab019e28dcf09c2727aa69e2a073ed66718b3;p=~andy%2Flinux diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index dc52e13d58e..3881610b643 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;