[PATCH] Fix setserial spd handling

Marek Becka yuen at klacno.sk
Sun May 1 18:23:01 UTC 2011


---
 miscutils/setserial.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/miscutils/setserial.c b/miscutils/setserial.c
index 501beaa..2951b98 100644
--- a/miscutils/setserial.c
+++ b/miscutils/setserial.c
@@ -687,7 +687,7 @@ static void serial_set(char **arg, int opts)
 		case CMD_SPD_SHI:
 		case CMD_SPD_WARP:
 		case CMD_SPD_CUST:
-			serinfo.flags &= ASYNC_SPD_MASK;
+			serinfo.flags &= ~ASYNC_SPD_MASK;
 			/* fallthrough */
 		case CMD_FLAG_SAK:
 		case CMD_FLAG_FOURPORT:
-- 
1.7.2.2



More information about the busybox mailing list