mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
block opening of ci device with O_RDWR
This commit is contained in:
parent
1173454c93
commit
e2145682e2
@ -842,7 +842,8 @@ static int ts_open(struct inode *inode, struct file *file)
|
|||||||
} else if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
|
} else if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
|
||||||
if (!output)
|
if (!output)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
} else
|
||||||
|
return -EINVAL;
|
||||||
err = dvb_generic_open(inode, file);
|
err = dvb_generic_open(inode, file);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user