Re: [PATCH] mm: Optimizing error condition detection in do_mprotect_pkey()

2021-01-22 Thread Jarkko Sakkinen
On Thu, Jan 21, 2021 at 02:46:27PM -0800, Andrew Morton wrote: > On Wed, 20 Jan 2021 16:29:20 +0200 Jarkko Sakkinen wrote: > > > > > > > On Mon, Jan 18, 2021 at 09:33:10PM +0800, Tianjia Zhang wrote: > > > Obviously, the error variable detection of the if statement is > > > for the mprotect cal

Re: [PATCH] mm: Optimizing error condition detection in do_mprotect_pkey()

2021-01-21 Thread Andrew Morton
On Wed, 20 Jan 2021 16:29:20 +0200 Jarkko Sakkinen wrote: > > > On Mon, Jan 18, 2021 at 09:33:10PM +0800, Tianjia Zhang wrote: > > Obviously, the error variable detection of the if statement is > > for the mprotect callback function, so it is also put into the > > scope of calling callbck. > >

Re: [PATCH] mm: Optimizing error condition detection in do_mprotect_pkey()

2021-01-20 Thread Jarkko Sakkinen
On Mon, Jan 18, 2021 at 09:33:10PM +0800, Tianjia Zhang wrote: > Obviously, the error variable detection of the if statement is > for the mprotect callback function, so it is also put into the > scope of calling callbck. > > Reported-by: Jia Zhang > Signed-off-by: Tianjia Zhang No fixes tag,

[PATCH] mm: Optimizing error condition detection in do_mprotect_pkey()

2021-01-18 Thread Tianjia Zhang
Obviously, the error variable detection of the if statement is for the mprotect callback function, so it is also put into the scope of calling callbck. Reported-by: Jia Zhang Signed-off-by: Tianjia Zhang --- mm/mprotect.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git