Commit b81a3c76 authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

[PATCH] USB: error return codes in usblp

an unknown ioctl shall return ENOTTY, not EINVAL.
parent 38ab367b
......@@ -573,7 +573,7 @@ static int usblp_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
break;
default:
retval = -EINVAL;
retval = -ENOTTY;
}
else /* old-style ioctl value */
switch (cmd) {
......@@ -590,7 +590,7 @@ static int usblp_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
break;
default:
retval = -EINVAL;
retval = -ENOTTY;
}
done:
......
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