summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2007-12-21 17:03:39 +0800
committerBryan Wu <cooloney@kernel.org>2007-12-21 17:03:39 +0800
commit75b780bd99b851682289e7a88763ede5a936edb0 (patch)
tree446d602b4bfd75685c30e1e94910dd00573ff09f /drivers/serial
parent1b73351c6afcc3acbf9e29a43ee14b3c9a386503 (diff)
downloadblackbird-op-linux-75b780bd99b851682289e7a88763ede5a936edb0.tar.gz
blackbird-op-linux-75b780bd99b851682289e7a88763ede5a936edb0.zip
[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>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/bfin_5xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index 3a2aa7e277fa..838f491c8deb 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -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)
OpenPOWER on IntegriCloud