device: pass CDev::ioctl() to superclass

this allows DEVIOCGDEVICEID to work.
This commit is contained in:
Andrew Tridgell
2014-07-08 21:37:45 +10:00
committed by Lorenz Meier
parent c6b0dc1ee8
commit 6cffa948fe
+7
View File
@@ -268,6 +268,13 @@ CDev::ioctl(struct file *filp, int cmd, unsigned long arg)
break;
}
/* try the superclass. The different ioctl() function form
* means we need to copy arg */
unsigned arg2 = arg;
int ret = Device::ioctl(cmd, arg2);
if (ret != -ENODEV)
return ret;
return -ENOTTY;
}