We want to start at 0 and do not care about the updated value. Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> --- fs/exec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index a91003e28eaa..bb18ff89abcd 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1743,10 +1743,8 @@ static int bprm_creds_from_file(struct linux_binprm *bprm) */ static int prepare_binprm(struct linux_binprm *bprm) { - loff_t pos = 0; - memset(bprm->buf, 0, BINPRM_BUF_SIZE); - return kernel_read(bprm->file, bprm->buf, BINPRM_BUF_SIZE, &pos); + return kernel_read(bprm->file, bprm->buf, BINPRM_BUF_SIZE, NULL); } /* -- 2.28.0