We want to start at 0 and do not care about the updated value. Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> --- fs/binfmt_aout.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c index 3e84e9bb9084..6e7fea50523d 100644 --- a/fs/binfmt_aout.c +++ b/fs/binfmt_aout.c @@ -259,12 +259,11 @@ 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, &ex, sizeof(ex), &pos); + error = kernel_read(file, &ex, sizeof(ex), NULL); if (error != sizeof(ex)) goto out; -- 2.28.0