From: Sasha Levin Date: Wed, 3 Jul 2019 22:25:50 +0000 (-0400) Subject: fix build error in 4.4 binfmt patch X-Git-Tag: v5.1.17~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d662c949fdd6a3205f8812e7ebe8a6d3215aada;p=thirdparty%2Fkernel%2Fstable-queue.git fix build error in 4.4 binfmt patch Signed-off-by: Sasha Levin --- diff --git a/queue-4.4/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch b/queue-4.4/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch index d3240f07eb4..9e24d78f169 100644 --- a/queue-4.4/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch +++ b/queue-4.4/fs-binfmt_flat.c-make-load_flat_shared_library-work.patch @@ -74,7 +74,7 @@ Signed-off-by: Greg Kroah-Hartman - 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);