projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52d0744
)
staging: greybus: uart: fix invalid user-pointer check
author
Johan Hovold
<johan@kernel.org>
Tue, 8 Nov 2016 12:31:18 +0000
(13:31 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 13:04:12 +0000
(14:04 +0100)
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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/uart.c
b/drivers/staging/greybus/uart.c
index
c1f6abb
..
35755f7
100644
(file)
--- a/
drivers/staging/greybus/uart.c
+++ b/
drivers/staging/greybus/uart.c
@@
-623,9
+623,6
@@
static int get_serial_info(struct gb_tty *gb_tty,
{
struct serial_struct tmp;
- if (!info)
- return -EINVAL;
-
memset(&tmp, 0, sizeof(tmp));
tmp.flags = ASYNC_LOW_LATENCY | ASYNC_SKIP_TEST;
tmp.type = PORT_16550A;