diff options
-rw-r--r-- | drivers/tty/serial/serial_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 61529a84c3fc..8bb19da01639 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c | |||
@@ -2618,7 +2618,7 @@ int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport) | |||
2618 | if (uport->attr_group) | 2618 | if (uport->attr_group) |
2619 | num_groups++; | 2619 | num_groups++; |
2620 | 2620 | ||
2621 | uport->tty_groups = kcalloc(num_groups, sizeof(**uport->tty_groups), | 2621 | uport->tty_groups = kcalloc(num_groups, sizeof(*uport->tty_groups), |
2622 | GFP_KERNEL); | 2622 | GFP_KERNEL); |
2623 | if (!uport->tty_groups) { | 2623 | if (!uport->tty_groups) { |
2624 | ret = -ENOMEM; | 2624 | ret = -ENOMEM; |