diff mbox

[v2,13/13] tty: pruss SUART driver

Message ID A6D1CF0E941748448610BE8874FC586F@subhasishg (mailing list archive)
State Superseded
Headers show

Commit Message

Subhasish Ghosh Feb. 22, 2011, 10:26 a.m. UTC
None
diff mbox

Patch

==================================================================================
--- a/drivers/tty/serial/da8xx_pruss/pruss_suart.c
+++ b/drivers/tty/serial/da8xx_pruss/pruss_suart.c
@@ -170,8 +170,9 @@  static void omapl_pru_rx_chars(struct omapl_pru_suart 
*soft_uart, u32 uart_no)
        s8 flags = TTY_NORMAL;
        u16 rx_status, data_len = SUART_FIFO_LEN;
        u32 data_len_read;
-       u8 suart_data[SUART_FIFO_LEN + 1];
+       u8 *suart_data = NULL;
        s32 i = 0;
+       s32 alloc_len = 0;

        if (!(suart_get_duplex(soft_uart, uart_no) & ePRU_SUART_HALF_RX))