diff for duplicates of <20210317005536.724046-61-sashal@kernel.org> diff --git a/a/1.txt b/N1/1.txt index d297ee3..08e7a06 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -10,7 +10,7 @@ The bug is in mismatch between get/set errors: static inline long syscall_get_error(struct task_struct *task, struct pt_regs *regs) { - return regs->r10 = -1 ? regs->r8:0; + return regs->r10 == -1 ? regs->r8:0; } static inline long syscall_get_return_value(struct task_struct *task, @@ -57,8 +57,8 @@ index 6c6f16e409a8..0d23c0049301 100644 static inline long syscall_get_error(struct task_struct *task, struct pt_regs *regs) { -- return regs->r10 = -1 ? regs->r8:0; -+ return regs->r10 = -1 ? -regs->r8:0; +- return regs->r10 == -1 ? regs->r8:0; ++ return regs->r10 == -1 ? -regs->r8:0; } static inline long syscall_get_return_value(struct task_struct *task, diff --git a/a/content_digest b/N1/content_digest index 5ef3088..16456ed 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020210317005536.724046-1-sashal@kernel.org\0" "From\0Sasha Levin <sashal@kernel.org>\0" "Subject\0[PATCH AUTOSEL 5.11 61/61] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign\0" - "Date\0Wed, 17 Mar 2021 00:55:35 +0000\0" + "Date\0Tue, 16 Mar 2021 20:55:35 -0400\0" "To\0linux-kernel@vger.kernel.org" " stable@vger.kernel.org\0" "Cc\0Sergei Trofimovich <slyfox@gentoo.org>" @@ -26,7 +26,7 @@ "static inline long syscall_get_error(struct task_struct *task,\n" " struct pt_regs *regs)\n" "{\n" - " return regs->r10 = -1 ? regs->r8:0;\n" + " return regs->r10 == -1 ? regs->r8:0;\n" "}\n" "\n" "static inline long syscall_get_return_value(struct task_struct *task,\n" @@ -73,12 +73,12 @@ " static inline long syscall_get_error(struct task_struct *task,\n" " \t\t\t\t struct pt_regs *regs)\n" " {\n" - "-\treturn regs->r10 = -1 ? regs->r8:0;\n" - "+\treturn regs->r10 = -1 ? -regs->r8:0;\n" + "-\treturn regs->r10 == -1 ? regs->r8:0;\n" + "+\treturn regs->r10 == -1 ? -regs->r8:0;\n" " }\n" " \n" " static inline long syscall_get_return_value(struct task_struct *task,\n" "-- \n" 2.30.1 -e67cc32b6f270096846bfa94dd16c6be6ae028667dd590a16ec6e0f4bc70c511 +d02a6dad2be30a815d9cc18133dcfe6bedfe4ec2fc3c40fed1269d93f7ed5d22
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.