1
0
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:
Ralph Metzler 2015-09-24 23:29:09 +02:00
parent 1173454c93
commit e2145682e2

View File

@ -842,7 +842,8 @@ static int ts_open(struct inode *inode, struct file *file)
} else if ((file->f_flags & O_ACCMODE) == O_WRONLY) {
if (!output)
return -EINVAL;
}
} else
return -EINVAL;
err = dvb_generic_open(inode, file);
if (err < 0)
return err;