Check character flags in ppp_async ldisc
PATCH 1/1 Check character flags in ppp_async ldisc
Although it was checking the per-character error flags supplied by the driver for ordinary characters, the ppp_async line discipline code wasn't checking the flags for special characters, such as the flag and escape characters (~ and }). This patch adds that check.
Signed-off-by Paul Mackerras <[email protected]>
drivers/net/ppp_async.c +3 -1
@@ -911,7 +911,9 @@break ; c = buf[n]; -if (c ==PPP_FLAG ) { +if (flags !=NULL && flags[n] !=0 ) { + ap->state |=SC_TOSS ; + }else if (c ==PPP_FLAG ) {process_input_packet (ap); }else if (c ==PPP_ESCAPE ) { ap->state |=SC_ESCAPE ;