powerpc/powernv: 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: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Geliang Tang 2017-04-29 09:45:14 +08:00 • committed by Michael Ellerman
commit 5588b29a5c