The patch titled Off-by-one in drivers/char/mwave/mwavedd.c has been added to the -mm tree. Its filename is off-by-one-in-drivers-char-mwave-mwaveddc.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Off-by-one in drivers/char/mwave/mwavedd.c From: Eric Sesterhenn <snakebyte@xxxxxx> This fixes two off by ones in the mwave driver, found via find -iname \*.[ch] | xargs grep "> ARRAY_SIZE(" Signed-off-by: Eric Sesterhenn <snakebyte@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/char/mwave/mwavedd.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/mwave/mwavedd.c~off-by-one-in-drivers-char-mwave-mwaveddc drivers/char/mwave/mwavedd.c --- a/drivers/char/mwave/mwavedd.c~off-by-one-in-drivers-char-mwave-mwaveddc +++ a/drivers/char/mwave/mwavedd.c @@ -297,7 +297,7 @@ static int mwave_ioctl(struct inode *ino " ipcnum %x, usIntCount %x\n", ipcnum, pDrvData->IPCs[ipcnum].usIntCount); - if (ipcnum > ARRAY_SIZE(pDrvData->IPCs)) { + if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { PRINTK_ERROR(KERN_ERR_MWAVE "mwavedd::mwave_ioctl:" " IOCTL_MW_GET_IPC: Error:" @@ -355,7 +355,7 @@ static int mwave_ioctl(struct inode *ino "mwavedd::mwave_ioctl IOCTL_MW_UNREGISTER_IPC" " ipcnum %x\n", ipcnum); - if (ipcnum > ARRAY_SIZE(pDrvData->IPCs)) { + if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { PRINTK_ERROR(KERN_ERR_MWAVE "mwavedd::mwave_ioctl:" " IOCTL_MW_UNREGISTER_IPC:" _ Patches currently in -mm which might be from snakebyte@xxxxxx are off-by-one-in-arch-arm-common-icst.patch git-dvb.patch git-gfs2.patch possible-dereference-in.patch git-intelfb.patch git-netdev-all.patch remove-unnecessary-check-in-drivers-net-depcac.patch possible-null-dereference-in-net-core-rtnetlinkc.patch off-by-one-in-arch-ppc-platforms-mpc8.patch remove-unnecessary-check-in.patch git-scsi-misc.patch remove-unnecessary-check-in-drivers-scsi-sgc.patch overrun-in-drivers-scsi-scsic.patch uninitialized-variable-in-drivers-net-wan-syncpppc.patch off-by-one-in-drivers-char-mwave-mwaveddc.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html