mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
[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>
This commit is contained in:
parent
6c6a2334a1
commit
80e3c2b659
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user