--- linux-2.6.17/drivers/serial/serial_core.c.orig 2006-07-13 11:17:49.000000000 -0500 +++ linux-2.6.17/drivers/serial/serial_core.c 2006-07-13 11:23:05.000000000 -0500 @@ -786,6 +786,7 @@ static int uart_set_info(struct uart_sta * We failed anyway. */ retval = -EBUSY; + goto exit; // Added to return the correct error -Ram Gupta } }