Commit d93c768e authored by Dominik Brodowski's avatar Dominik Brodowski

pcmcia: fix return value in cm4000_cs.c

should be -EINVAL, not EINVAL. Found by Peter Stuge.
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent 42c59208
...@@ -1439,7 +1439,7 @@ static long cmm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -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"); DEBUGP(4, dev, "CMM_ABSENT flag set\n");
goto out; goto out;
} }
rc = EINVAL; rc = -EINVAL;
if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) { if (_IOC_TYPE(cmd) != CM_IOC_MAGIC) {
DEBUGP(4, dev, "ioctype mismatch\n"); DEBUGP(4, dev, "ioctype mismatch\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment