summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRam Gupta <ram.gupta5@gmail.com>2006-08-14 23:05:29 -0700
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-10-01 17:07:00 +0100
commit80e3c2b659515ef236f33f691ff5b22ae90ae8e4 (patch)
tree22a703b601180dde953f0547b2660cbac1db76ec /drivers
parent6c6a2334a1e8af7c3eaab992732825fa9ade77cf (diff)
[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 <r.gupta@astronautics.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/serial_core.c1
1 files changed, 1 insertions, 0 deletions
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
}
}