diff options
author | Lai Jiangshan <[email protected]> | 2009-04-02 15:16:56 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-04-10 12:44:42 +0200 |
commit | d1e7e02f30be672c6f6ee40908be83877a0d49d1 (patch) | |
tree | 24f958961d8de3ef0c1d16a407041d096fc1f098 /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | 62b8e680e61d3f48f2a12ee248ca03ea8f376926 (diff) |
tracing: disable seeking for trace_pipe_raw
Impact: disable pread()
We set tracing_buffers_fops.llseek to no_llseek,
but we can still perform pread() to read this file.
That is not expected.
This fix uses nonseekable_open() to disable it.
tracing_buffers_fops.llseek is still set to no_llseek,
it mark this file is a "non-seekable device" and is used by
sys_splice(). See also do_splice() or manual of splice(2):
ERRORS
EINVAL Target file system doesn't support splicing;
neither of the descriptors refers to a pipe;
or offset given for non-seekable device.
Signed-off-by: Lai Jiangshan <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions