OSDN Git Service

powerpc/uaccess: Add unsafe_copy_from_user()
authorChristopher M. Riedl <cmr@codefail.de>
Sat, 27 Feb 2021 01:12:50 +0000 (19:12 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 01:49:46 +0000 (12:49 +1100)
commit9466c1799fa2acb68e505a264dcdf53779101ac6
tree952e7bca4caabd041c874a951d405140f4de35cd
parentdeb9b13eb2571fbde164ae012c77985fd14f2f02
powerpc/uaccess: Add unsafe_copy_from_user()

Use the same approach as unsafe_copy_to_user() but instead call
unsafe_get_user() in a loop.

Signed-off-by: Christopher M. Riedl <cmr@codefail.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210227011259.11992-2-cmr@codefail.de
arch/powerpc/include/asm/uaccess.h