]> git.baikalelectronics.ru Git - kernel.git/commit
staging: greybus: uart: fix invalid user-pointer check
authorJohan Hovold <johan@kernel.org>
Tue, 8 Nov 2016 12:31:18 +0000 (13:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 13:04:12 +0000 (14:04 +0100)
commit3d1ccdbc33e4c71302729764f0b15e4584e8baa3
tree02fbadb49d1876427609d871e70f72eddf6a9e58
parent185c1f942f0c3c26f357d13d77c52d815ea15bd1
staging: greybus: uart: 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>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/uart.c