]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/compat_ioctl.c
fs/compat_ioctl.c: fix an underflow issue (harmless)
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 21 Jan 2014 23:48:43 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:42 +0000 (16:19 -0800)
commit38316c8ab7f17bc1be8f2898278d5f5131e18bf2
treeb712b7206791c79a5a3c8660b16b0934f90d5949
parent0afaa12047a45ebe651f29a3b4818e523f862c28
fs/compat_ioctl.c: fix an underflow issue (harmless)

We cap "nmsgs" at I2C_RDRW_IOCTL_MAX_MSGS (42) but the current code
allows negative values.  It's harmless but it makes my static checker
upset so I've made nsmgs unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/compat_ioctl.c