]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix build error in 4.9 binfmt patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 15:19:59 +0000 (17:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 15:19:59 +0000 (17:19 +0200)
queue-4.9/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch

index e6c8ff7f00d5aa15fcc3f449c36ab1efee2f56fd..403fe674439b942f77edc3781453739ca386b21b 100644 (file)
@@ -72,7 +72,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 -      bprm.cred_prepared = 1;
 -
 -      res = prepare_binprm(&bprm);
-+      res = kernel_read(bprm.file, bprm.buf, BINPRM_BUF_SIZE, &pos);
++      res = kernel_read(bprm.file, pos, bprm.buf, BINPRM_BUF_SIZE);
  
 -      if (!res)
 +      if (res >= 0)