diff mbox

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

Message ID 99CE1730AA2F4F2F91AFA71BD75FDC41@subhasishg (mailing list archive)
State Changes Requested
Headers show

Commit Message

Subhasish Ghosh March 1, 2011, 1:37 p.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))