asm-generic: {get,put}_user ptr argument evaluate only 1 time
authorYoshinori Sato <ysato@users.sourceforge.jp>
Thu, 16 Jul 2015 04:56:06 +0000 (13:56 +0900)
committerYoshinori Sato <ysato@users.sourceforge.jp>
Sun, 8 Nov 2015 13:44:42 +0000 (22:44 +0900)
commita02613a4ba679eacec8251976d02809d533fa717
tree90d5aabd15bee0954437bcf96b4c13e0901e63e7
parenta795239b698d3f7c455b7f8841f5c62d20eefb23
asm-generic: {get,put}_user ptr argument evaluate only 1 time

Current implemantation ptr argument evaluate 2 times.
It'll be an unexpected result.

Changes v5:
Remove unnecessary const.
Changes v4:
Temporary pointer type change to const void*
Changes v3:
Some build error fix.
Changes v2:
Argument x protect.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
include/asm-generic/uaccess.h