Commit bf397c65 authored by Matthias Andree's avatar Matthias Andree

Properly terminate /proc/tty/driver/serial output lines of known UARTS

when the caller has no CAP_SYS_ADMIN capability.
parent c2988baf
...@@ -1707,6 +1707,9 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i) ...@@ -1707,6 +1707,9 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i)
strcat(stat_buf, "\n"); strcat(stat_buf, "\n");
ret += sprintf(buf + ret, stat_buf); ret += sprintf(buf + ret, stat_buf);
} else {
strcat(buf, "\n");
ret++;
} }
#undef STATBIT #undef STATBIT
#undef INFOBIT #undef INFOBIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment