]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: amiserial: fix invalid user-pointer check
authorJohan Hovold <johan@kernel.org>
Tue, 8 Nov 2016 12:24:53 +0000 (13:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 13:41:25 +0000 (14:41 +0100)
commit6f8ada1292904c8299daa019634b3cddcf2a31c3
treec9cb8f3d7dcf8748e48d37bc5a0c70d5a7a9f786
parent5c31ef91c06db7800ad573174bd92be4df34ecb2
tty: amiserial: fix invalid user-pointer check

Drop invalid user-pointer check from TIOCGSERIAL handler.

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/amiserial.c