]> git.karo-electronics.de Git - linux-beck.git/commit
tty: rocket: fix invalid user-pointer checks
authorJohan Hovold <johan@kernel.org>
Tue, 8 Nov 2016 12:24:54 +0000 (13:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 13:41:25 +0000 (14:41 +0100)
commit7a3f09846c978e613979d89f99b633b501f202a2
tree35f5f17e109ef5a97ed008bf269127f2175f47d1
parent6f8ada1292904c8299daa019634b3cddcf2a31c3
tty: rocket: fix invalid user-pointer checks

Drop invalid user-pointer checks from custom ioctl handlers.

A NULL-pointer can be valid in user space and copy_to_user() takes care
of sanity checking.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rocket.c