serial: clear entire struct in uart_get_info()
Subsystems (2)
PATCH 1/1 serial: clear entire struct in uart_get_info()
There is a typo here, sizeof(retinfo) should be sizeof(*retinfo) to clear the struct.
Signed-off-by Dan Carpenter <[email protected]>
---
Only needed in linux-next.
drivers/tty/serial/serial_core.c +1 -1
@@ -640,7 +640,7 @@ static void uart_get_info(struct tty_port *port, {struct uart_port *uport = state->uart_port; -memset (retinfo,0 ,sizeof (retinfo)); +memset (retinfo,0 ,sizeof (*retinfo)); retinfo->type = uport->type; retinfo->line = uport->line;