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>
This commit is contained in:
Geliang Tang 2017-05-06 23:42:21 +08:00 • committed by Steffen Klassert
commit a133d93054