Commit 641d16f5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] /proc/tty/driver/serial formatting fix

From: Matthias Andree <matthias.andree@gmx.de>

Properly terminate /proc/tty/driver/serial output lines of known UARTS
when the caller has no CAP_SYS_ADMIN capability.
parent 290ed0c6
......@@ -1707,6 +1707,9 @@ static int uart_line_info(char *buf, struct uart_driver *drv, int i)
strcat(stat_buf, "\n");
ret += sprintf(buf + ret, stat_buf);
} else {
strcat(buf, "\n");
ret++;
}
#undef STATBIT
#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