vt: use copy_to_user instead of __put_user in GIO_UNIMAP ioctl
authorAdam Borowski <kilobyte@angband.pl>
Sat, 3 Jun 2017 07:35:07 +0000 (09:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 09:07:36 +0000 (11:07 +0200)
commit915f0a8d2884d05538ae5c06e09f40d364fa2c3f
treed30b6abab427a4fb5a63202c7c1613aaed409768
parent6987dc8a70976561d22450b5858fc9767788cc1c
vt: use copy_to_user instead of __put_user in GIO_UNIMAP ioctl

A nice big linear transfer, no need to flip stac/PAN/etc every half-entry.
Also, yay __put_user() after checking only read.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c