]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/mwave/mwavedd.c
Merge branch 'master'
[linux-2.6-omap-h63xx.git] / drivers / char / mwave / mwavedd.c
index 8666171e187b0cf1b53437308566d0ef48b8de9e..d3ba2f860ef02626a2d73c5f222a16051d5bab7f 100644 (file)
@@ -271,7 +271,7 @@ static int mwave_ioctl(struct inode *inode, struct file *file,
                                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_REGISTER_IPC:"