aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/atmel_serial.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/serial/atmel_serial.c b/drivers/serial/atmel_serial.c
index d15ab2243289..e08fe64e4466 100644
--- a/drivers/serial/atmel_serial.c
+++ b/drivers/serial/atmel_serial.c
@@ -1469,7 +1469,8 @@ static int __devinit atmel_serial_probe(struct platform_device *pdev)
1469 1469
1470 if (!atmel_use_dma_rx(&port->uart)) { 1470 if (!atmel_use_dma_rx(&port->uart)) {
1471 ret = -ENOMEM; 1471 ret = -ENOMEM;
1472 data = kmalloc(ATMEL_SERIAL_RINGSIZE, GFP_KERNEL); 1472 data = kmalloc(sizeof(struct atmel_uart_char)
1473 * ATMEL_SERIAL_RINGSIZE, GFP_KERNEL);
1473 if (!data) 1474 if (!data)
1474 goto err_alloc_ring; 1475 goto err_alloc_ring;
1475 port->rx_ring.buf = data; 1476 port->rx_ring.buf = data;