diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index d7e28ab4c3132a37d959e268629f5b5a5a1545ec..d814bb1dcb052b246f707c64c89ae01e3b775eee 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 } }