|
@@ -551,7 +551,7 @@ out_unlock:
|
|
|
static long privcmd_ioctl(struct file *file,
|
|
static long privcmd_ioctl(struct file *file,
|
|
|
unsigned int cmd, unsigned long data)
|
|
unsigned int cmd, unsigned long data)
|
|
|
{
|
|
{
|
|
|
- int ret = -ENOSYS;
|
|
|
|
|
|
|
+ int ret = -ENOTTY;
|
|
|
void __user *udata = (void __user *) data;
|
|
void __user *udata = (void __user *) data;
|
|
|
|
|
|
|
|
switch (cmd) {
|
|
switch (cmd) {
|
|
@@ -572,7 +572,6 @@ static long privcmd_ioctl(struct file *file,
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
default:
|
|
|
- ret = -EINVAL;
|
|
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|