Re: [PATCH] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-16 Thread Yoshinori Sato
On Thu, 16 Jul 2015 23:15:21 +0900, Arnd Bergmann wrote: > > On Thursday 16 July 2015 14:15:22 Yoshinori Sato wrote: > > Current implemantation ptr argument evaluate 2 times. > > It'll be an unexpected result. > > > > Signed-off-by: Yoshinori Sato > > Acked-by: Arnd Bergmann > > Do you want t

Re: [PATCH] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-16 Thread Arnd Bergmann
On Thursday 16 July 2015 14:15:22 Yoshinori Sato wrote: > Current implemantation ptr argument evaluate 2 times. > It'll be an unexpected result. > > Signed-off-by: Yoshinori Sato Acked-by: Arnd Bergmann Do you want to include this into a pull request of your own? I'm currently on leave and not

Re: [PATCH] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-16 Thread Yoshinori Sato
On Thu, 16 Jul 2015 15:40:31 +0900, Geert Uytterhoeven wrote: > > Hi Sato-san, > > On Thu, Jul 16, 2015 at 7:15 AM, Yoshinori Sato > wrote: > > Current implemantation ptr argument evaluate 2 times. > > It'll be an unexpected result. > > > > Signed-off-by: Yoshinori Sato > > Acked-by: Geert Uyt

Re: [PATCH] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-15 Thread Geert Uytterhoeven
Hi Sato-san, On Thu, Jul 16, 2015 at 7:15 AM, Yoshinori Sato wrote: > Current implemantation ptr argument evaluate 2 times. > It'll be an unexpected result. > > Signed-off-by: Yoshinori Sato Acked-by: Geert Uytterhoeven > --- > include/asm-generic/uaccess.h | 10 ++ > 1 file changed,

[PATCH] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-15 Thread Yoshinori Sato
Current implemantation ptr argument evaluate 2 times. It'll be an unexpected result. Signed-off-by: Yoshinori Sato --- include/asm-generic/uaccess.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h index