return start error

This commit is contained in:
rjkm 2021-12-06 15:36:44 +01:00
parent 811bea8010
commit e17abdbbb9
1 changed files with 2 additions and 2 deletions

View File

@ -932,9 +932,9 @@ static int ts_open(struct inode *inode, struct file *file)
if (err < 0)
return err;
if ((file->f_flags & O_ACCMODE) == O_RDONLY)
ddb_input_start(input);
err = ddb_input_start(input);
else if ((file->f_flags & O_ACCMODE) == O_WRONLY)
ddb_output_start(output);
err = ddb_output_start(output);
return err;
}