]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix build error in 4.4 binfmt patch
authorSasha Levin <sashal@kernel.org>
Wed, 3 Jul 2019 22:25:50 +0000 (18:25 -0400)
committerSasha Levin <sashal@kernel.org>
Wed, 3 Jul 2019 22:25:50 +0000 (18:25 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.4/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch

index d3240f07eb4cc54f83173fdb43159581c9ac66d8..9e24d78f1699ebf3eb14a5dbc27efcfbdfa2e743 100644 (file)
@@ -74,7 +74,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 -      res = prepare_binprm(&bprm);
 -
 -      if (!IS_ERR_VALUE(res))
-+      res = kernel_read(bprm.file, bprm.buf, BINPRM_BUF_SIZE, &pos);
++      res = kernel_read(bprm.file, pos, bprm.buf, BINPRM_BUF_SIZE);
 +      if (res >= 0)
                res = load_flat_file(&bprm, libs, id, NULL);