summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/tiva/tm4c_ethernet.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
index 14acdab76..a0928b326 100644
--- a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
+++ b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c
@@ -1665,7 +1665,12 @@ static void tiva_receive(FAR struct tiva_ethmac_s *priv)
* flasher leaves the hardware in a bad state(?).
*/
- DEBUGASSERT(dev->d_buf != NULL);
+ // DEBUGASSERT(dev->d_buf != NULL);
+ if (dev->d_buf == NULL)
+ {
+ nlldbg("ERROR: Ignoring NULL I/O buffer\n");
+ return;
+ }
/* Loop while while tiva_recvframe() successfully retrieves valid
* Ethernet frames.