xfrm: use memdup_user
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:42:21 +0000 (23:42 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 16 May 2017 05:32:25 +0000 (07:32 +0200)
commita133d93054fa063fb3bd328abdc3d09a7e687afe
tree060e597d655c08c6ad6470e888798f9125ab9de2
parenta95cfad947d5f40cfbf9ad3019575aac1d8ac7a6
xfrm: use memdup_user

Use memdup_user() helper instead of open-coding to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c