mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
atmel_serial: fix broken RX buffer allocation
Introduced by atmel_serial-split-the-interrupt-handler.patch. Thanks to michael <[email protected]> for spotting it. Signed-off-by: Haavard Skinnemoen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a66706158d
commit
6433471d33
1 changed files with 2 additions and 1 deletions
|
|
@ -1469,7 +1469,8 @@ static int __devinit atmel_serial_probe(struct platform_device *pdev)
|
|||
|
||||
if (!atmel_use_dma_rx(&port->uart)) {
|
||||
ret = -ENOMEM;
|
||||
data = kmalloc(ATMEL_SERIAL_RINGSIZE, GFP_KERNEL);
|
||||
data = kmalloc(sizeof(struct atmel_uart_char)
|
||||
* ATMEL_SERIAL_RINGSIZE, GFP_KERNEL);
|
||||
if (!data)
|
||||
goto err_alloc_ring;
|
||||
port->rx_ring.buf = data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue