net: ppp: fix consuming claimed area of ringbuf
Claimed ringbuf bytes were parsed until first frame was detected, but remaining data in the claimed area was just ignored / lost. Continue parsing bytes to the end of claimed area after each detected frame. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
6b72fbae7c
commit
a470d9deba
1 changed files with 0 additions and 1 deletions
|
@ -659,7 +659,6 @@ static void ppp_isr_cb_work(struct k_work *work)
|
|||
/* Ignore empty or too short frames */
|
||||
if (ppp->pkt && net_pkt_get_len(ppp->pkt) > 3) {
|
||||
ppp_process_msg(ppp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while (--tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue