]> err.no Git - linux-2.6/commitdiff
pcmcia: fix return value in cm4000_cs.c
authorDominik Brodowski <linux@dominikbrodowski.net>
Tue, 15 Jul 2008 18:11:21 +0000 (20:11 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Tue, 15 Jul 2008 18:53:05 +0000 (20:53 +0200)
should be -EINVAL, not EINVAL. Found by Peter Stuge.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/char/pcmcia/cm4000_cs.c

index 59ca35156d8159699f960cdd1aac43a448dc023f..e4a4fbd37d7a3062cd8d91faf397cbdf28443186 100644 (file)
@@ -1439,7 +1439,7 @@ static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                DEBUGP(4, dev, "CMM_ABSENT flag set\n");
                goto out;
        }
-       rc = EINVAL;
+       rc = -EINVAL;
 
        if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) {
                DEBUGP(4, dev, "ioctype mismatch\n");