diff options
author | Ram Gupta <ram.gupta5@gmail.com> | 2006-08-14 23:05:29 -0700 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-10-01 17:07:00 +0100 |
commit | 80e3c2b659515ef236f33f691ff5b22ae90ae8e4 (patch) | |
tree | 22a703b601180dde953f0547b2660cbac1db76ec | |
parent | 6c6a2334a1e8af7c3eaab992732825fa9ade77cf (diff) | |
download | kernel_samsung_espresso10-80e3c2b659515ef236f33f691ff5b22ae90ae8e4.zip kernel_samsung_espresso10-80e3c2b659515ef236f33f691ff5b22ae90ae8e4.tar.gz kernel_samsung_espresso10-80e3c2b659515ef236f33f691ff5b22ae90ae8e4.tar.bz2 |
[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>
-rw-r--r-- | drivers/serial/serial_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index d7e28ab..d814bb1 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 } } |