From 80e3c2b659515ef236f33f691ff5b22ae90ae8e4 Mon Sep 17 00:00:00 2001 From: Ram Gupta Date: Mon, 14 Aug 2006 23:05:29 -0700 Subject: [PATCH] [SERIAL] returning proper error from serial core driver Fix the issue of returning 0 even in case of error from uart_set_info function. Now it returns the error EBUSY when it can not set new port. Signed-off-by: Ram Gupta Signed-off-by: Andrew Morton Signed-off-by: Russell King --- drivers/serial/serial_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index d7e28ab4c31..d814bb1dcb0 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -792,6 +792,7 @@ static int uart_set_info(struct uart_state *state, * We failed anyway. */ retval = -EBUSY; + goto exit; // Added to return the correct error -Ram Gupta } } -- 2.41.1