Update PREAD fix
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Apr 2011 16:34:29 +0000 (12:34 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 18 Apr 2011 16:34:29 +0000 (12:34 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.c

index f5ead59eb9a11552a9498604393af0c61e407592..41774e4356a70cbede41747b5067ffd67c64d262 100644 (file)
@@ -245,7 +245,7 @@ int lttng_abi_open_stream(struct file *channel_file)
         * FMODE_LSEEK, FMODE_PREAD nor FMODE_PWRITE. We need to read from this
         * file descriptor, so we set FMODE_PREAD here.
         */
-       stream_file->f_mode = FMODE_PREAD;
+       stream_file->f_mode |= FMODE_PREAD;
        fd_install(stream_fd, stream_file);
        /*
         * The stream holds a reference to the channel within the generic ring
This page took 0.026435 seconds and 4 git commands to generate.