[PATCH] pch_uart: check kzalloc result in dma_handle_tx()

2012-07-28 Thread Fengguang Wu
Reported by coccinelle: drivers/tty/serial/pch_uart.c:979:1-14: alloc with no test, possible model on line 994 Signed-off-by: Fengguang Wu --- drivers/tty/serial/pch_uart.c |4 1 file changed, 4 insertions(+) WARNING: this may be a superficial fix! ---

[PATCH] pch_uart: check kzalloc result in dma_handle_tx()

2012-07-28 Thread Fengguang Wu
Reported by coccinelle: drivers/tty/serial/pch_uart.c:979:1-14: alloc with no test, possible model on line 994 Signed-off-by: Fengguang Wu fengguang...@intel.com --- drivers/tty/serial/pch_uart.c |4 1 file changed, 4 insertions(+) WARNING: this may be a superficial fix! ---