aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorRam Gupta <ram.gupta5@gmail.com>2006-08-15 02:05:29 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-10-01 12:07:00 -0400
commit80e3c2b659515ef236f33f691ff5b22ae90ae8e4 (patch)
tree22a703b601180dde953f0547b2660cbac1db76ec /drivers/serial
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/serial')
-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 d7e28ab4c313..d814bb1dcb05 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,
792 * We failed anyway. 792 * We failed anyway.
793 */ 793 */
794 retval = -EBUSY; 794 retval = -EBUSY;
795 goto exit; // Added to return the correct error -Ram Gupta
795 } 796 }
796 } 797 }
797 798