aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/serial_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index daeba1c52c8e..9425ed69e0f7 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -2530,10 +2530,8 @@ int uart_remove_one_port(struct uart_driver *drv, struct uart_port *port)
2530 /* 2530 /*
2531 * Kill the tasklet, and free resources. 2531 * Kill the tasklet, and free resources.
2532 */ 2532 */
2533 if (info) { 2533 if (info)
2534 tasklet_kill(&info->tlet); 2534 tasklet_kill(&info->tlet);
2535 kfree(info);
2536 }
2537 2535
2538 state->port = NULL; 2536 state->port = NULL;
2539 mutex_unlock(&port_mutex); 2537 mutex_unlock(&port_mutex);