fs-compat_ioctlc-fix-an-underflow-issue-harmless.patch removed from -mm tree
Subject: [merged] fs-compat_ioctlc-fix-an-underflow-issue-harmless.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:12:07 -0800
The patch titled
Subject: fs/compat_ioctl.c: fix an underflow issue (harmless)
has been removed from the -mm tree. Its filename was
fs-compat_ioctlc-fix-an-underflow-issue-harmless.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: 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.
---
fs/compat_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/compat_ioctl.c renamed from fs/compat_ioctl.c~fs-compat_ioctlc-fix-an-underflow-issue-harmless +2 -1
@@ -680,7 +680,8 @@ static int do_i2c_rdwr_ioctl(unsigned instruct 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 ;
_
Patches currently in -mm which might be from [email protected] are
origin.patch drivers-scsi-megaraid-megaraid_mmc-missing-bounds-check-in-mimd_to_kioc.patch drivers-block-paride-pgc-underflow-bug-in-pg_write.patch drivers-mailbox-omap-make-mbox-irq-signed-for-error-handling.patch drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch linux-next.patch zram-fix-race-between-reset-and-flushing-pending-work.patch