]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: use memdup_user
authorGeliang Tang <geliangtang@gmail.com>
Sat, 29 Apr 2017 01:45:14 +0000 (09:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 24 Jul 2017 11:48:42 +0000 (21:48 +1000)
commit11fbe05f9ccd29843a8a6d6cb4c433ec92ba9aa4
tree7d7c39fbb826660e9c30af39dc2fd3da836dda19
parent7a176b54378dd8ef6195d511863aaf699eae6e5f
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>
arch/powerpc/platforms/powernv/opal-prd.c