We want to start at 0 and do not care about the updated value. Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> --- fs/binfmt_flat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c index f2f9086ebe98..b3f525be0a1a 100644 --- a/fs/binfmt_flat.c +++ b/fs/binfmt_flat.c @@ -891,7 +891,6 @@ static int load_flat_shared_library(int id, struct lib_info *libs) struct linux_binprm bprm; int res; char buf[16]; - loff_t pos = 0; memset(&bprm, 0, sizeof(bprm)); @@ -905,7 +904,7 @@ static int load_flat_shared_library(int id, struct lib_info *libs) if (IS_ERR(bprm.file)) return res; - res = kernel_read(bprm.file, bprm.buf, BINPRM_BUF_SIZE, &pos); + res = kernel_read(bprm.file, bprm.buf, BINPRM_BUF_SIZE, NULL); if (res >= 0) res = load_flat_file(&bprm, libs, id, NULL); -- 2.28.0