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
1 changed files with 2 additions and 1 deletions

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;