mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
set relay file can not be read by pread(2)
I found that relay files can be read by pread(2). I fix it, for relay files are not capable of seeking. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
05dda977f2
commit
37529fe9f6
@ -736,7 +736,7 @@ static int relay_file_open(struct inode *inode, struct file *filp)
|
||||
kref_get(&buf->kref);
|
||||
filp->private_data = buf;
|
||||
|
||||
return 0;
|
||||
return nonseekable_open(inode, filp);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user