Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37529fe9 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Jens Axboe
Browse files

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: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 05dda977
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/**