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:
Stefan Lankes 2011-09-18 22:42:12 +02:00
parent c7054d9470
commit 9bafdf63c5
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}