author: Christoph Hellwig <hch@lst.de> 2017-09-01 17:39:13 +0200
committer: Al Viro <viro@zeniv.linux.org.uk> 2017-09-04 19:05:15 -0400
commit: bdd1d2d3d251c65b74ac4493e08db18971c09240
parent: c41fbad015dabb0a40ecca50c3ff5658eb6471ff
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
index 9be82c4e14a4..ce1824f47ba6 100644
--- a/fs/binfmt_aout.c
+++ b/fs/binfmt_aout.c
@@ -341,11 +341,12 @@ static int load_aout_library(struct file *file)
unsigned long error;
int retval;
struct exec ex;
+ loff_t pos = 0;
inode = file_inode(file);
retval = -ENOEXEC;
- error = kernel_read(file, 0, (char *) &ex, sizeof(ex));
+ error = kernel_read(file, &ex, sizeof(ex), &pos);
if (error != sizeof(ex))
goto out;