We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768ac08 commit 0aa9cc9Copy full SHA for 0aa9cc9
drivers/ethernet/eth_lowRISC.c
@@ -209,6 +209,8 @@ static void lr_isr(struct device *dev)
209
struct net_pkt *pkt = NULL;
210
uint16_t vlan_tag = NET_VLAN_TAG_UNSPEC;
211
212
+ lr_eth_disable_irq(priv);
213
+
214
if ((n = lr_eth_recv_size(priv)) > 0)
215
{
216
@@ -219,14 +221,15 @@ static void lr_isr(struct device *dev)
219
221
goto out;
220
222
}
223
- assert(lr_eth_recv(priv, priv->rxb, n) == n);
224
+ lr_eth_recv(priv, priv->rxb, n);
225
226
hexdump(priv->rxb, n, "%zd byte(s)", n);
227
228
if (net_pkt_write(pkt, priv->rxb, n)) {
229
LOG_ERR("Out of memory for received frame");
230
net_pkt_unref(pkt);
231
pkt = NULL;
232
+ goto out;
233
234
net_recv_data(get_iface(priv, vlan_tag), pkt);
235
0 commit comments