From: Mathieu Desnoyers Date: Mon, 18 Apr 2011 16:34:29 +0000 (-0400) Subject: Update PREAD fix X-Git-Tag: v2.0-pre1~174 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=d7b6f1973af6171e7dde50d6a6aa6beafd3162b7;p=lttng-modules.git Update PREAD fix Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-debugfs-abi.c b/ltt-debugfs-abi.c index f5ead59e..41774e43 100644 --- a/ltt-debugfs-abi.c +++ b/ltt-debugfs-abi.c @@ -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