Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80e3c2b6 authored by Ram Gupta's avatar Ram Gupta Committed by Russell King
Browse files

[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: default avatarRam Gupta <r.gupta@astronautics.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 6c6a2334
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -792,6 +792,7 @@ static int uart_set_info(struct uart_state *state,
			 * We failed anyway.
			 * We failed anyway.
			 */
			 */
			retval = -EBUSY;
			retval = -EBUSY;
			goto exit;  // Added to return the correct error -Ram Gupta
		}
		}
	}
	}