Fix misannotated out-of-line _copy_to_user()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Sat, 9 Dec 2017 16:24:24 +0000 (17:24 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 Dec 2017 14:35:11 +0000 (09:35 -0500)
commita0e94598e6b6c0d1df6a5fa14eb7c767ca817a20
treea1f8c8b9d4314f0770478bcd610f6b1f399a6505
parent9c5650359a1e7fc21e191fdc087f31154ce27ae2
Fix misannotated out-of-line _copy_to_user()

Destination is a kernel pointer and source - a userland one
in _copy_from_user(); _copy_to_user() is the other way round.

Fixes: d597580d37377 ("generic ...copy_..._user primitives")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/usercopy.c