mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-07 20:31:50 +08:00
Fixed VoE ioctl().
This commit is contained in:
@@ -3090,11 +3090,11 @@ long eccdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||
case EC_IOCTL_VOE_READ:
|
||||
if (!(filp->f_mode & FMODE_WRITE))
|
||||
return -EPERM;
|
||||
return ec_cdev_ioctl_voe_read(master, arg, priv);
|
||||
case EC_IOCTL_VOE_READ_NOSYNC:
|
||||
if (!(filp->f_mode & FMODE_WRITE))
|
||||
return -EPERM;
|
||||
return ec_cdev_ioctl_voe_read_nosync(master, arg, priv);
|
||||
return ec_cdev_ioctl_voe_read(master, arg, priv);
|
||||
case EC_IOCTL_VOE_WRITE:
|
||||
if (!(filp->f_mode & FMODE_WRITE))
|
||||
return -EPERM;
|
||||
|
||||
Reference in New Issue
Block a user