From 4d662c949fdd6a3205f8812e7ebe8a6d3215aada Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Wed, 3 Jul 2019 18:25:50 -0400 Subject: [PATCH] fix build error in 4.4 binfmt patch Signed-off-by: Sasha Levin --- .../fs-binfmt_flat.c-make-load_flat_shared_library-work.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3