]> git.karo-electronics.de Git - linux-beck.git/commit
tty/vt/keyboard: use memdup_user().
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Fri, 20 May 2016 12:23:28 +0000 (17:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 17:40:33 +0000 (10:40 -0700)
commit9b6519009dbe2b361a73284ea0fd2e9b86aeef4d
treebdadbfcd6ef5a9ad21f685804b67b19d64463672
parenta7cfaf165ed0f0b1e5e8636f9f28843b2b90139a
tty/vt/keyboard: use memdup_user().

Use memdup_user to duplicate a memory region from user-space to
kernel-space, instead of open coding using kmalloc & copy_from_user.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c