mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 08:31:55 +00:00
[Blackfin] serial driver: Fix bug Free rx dma buffer in shutdown.
Kernel crash for the serial driver in DMA mode: http://blackfin.uclinux.org/gf/project/uclinux-dist/tracker/?action=TrackerItemEdit&tracker_item_id=3679 Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
This commit is contained in:
parent
1b73351c6a
commit
75b780bd99
@ -704,6 +704,7 @@ static void bfin_serial_shutdown(struct uart_port *port)
|
||||
disable_dma(uart->rx_dma_channel);
|
||||
free_dma(uart->rx_dma_channel);
|
||||
del_timer(&(uart->rx_dma_timer));
|
||||
dma_free_coherent(NULL, PAGE_SIZE, uart->rx_dma_buf.buf, 0);
|
||||
#else
|
||||
#ifdef CONFIG_KGDB_UART
|
||||
if (uart->port.line != CONFIG_KGDB_UART_PORT)
|
||||
|
Loading…
Reference in New Issue
Block a user