use pbuf_free_callback to free pbufs in the context of an interrupt handler
=> forward this request to the tcpip thread
This commit is contained in:
parent
c7054d9470
commit
9bafdf63c5
2 changed files with 4 additions and 4 deletions
|
@ -350,11 +350,11 @@ static void rckemacif_input(struct netif* netif, struct pbuf* p)
|
|||
/* full packet send to tcpip_thread to process */
|
||||
if ((err = mynetif->input(p, mynetif)) != ERR_OK) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("rckemacif_input: IP input error %d\n", (int32_t) err));
|
||||
pbuf_free(p);
|
||||
pbuf_free_callback(p);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
pbuf_free(p);
|
||||
pbuf_free_callback(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,11 +135,11 @@ static void rtl8139if_input(struct netif* netif, struct pbuf* p)
|
|||
err = mynetif->input(p, mynetif);
|
||||
if (err != ERR_OK) {
|
||||
LWIP_DEBUGF(NETIF_DEBUG, ("rtl8139if_input: IP input error %d\n", (int32_t) err));
|
||||
pbuf_free(p);
|
||||
pbuf_free_callback(p);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
pbuf_free(p);
|
||||
pbuf_free_callback(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue