From: Greg Kroah-Hartman Date: Wed, 3 Jul 2019 15:19:59 +0000 (+0200) Subject: fix build error in 4.9 binfmt patch X-Git-Tag: v5.1.17~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5c6d3ccb9c35461791116b2b726891c65851c5a;p=thirdparty%2Fkernel%2Fstable-queue.git fix build error in 4.9 binfmt patch --- diff --git a/queue-4.9/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch b/queue-4.9/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch index e6c8ff7f00d..403fe674439 100644 --- a/queue-4.9/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch +++ b/queue-4.9/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch @@ -72,7 +72,7 @@ Signed-off-by: Greg Kroah-Hartman - 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)