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.
2 parents a3acf79 + bb367fd commit 0265752Copy full SHA for 0265752
source/portable/NetworkInterface/STM32/NetworkInterface.c
@@ -541,6 +541,12 @@ static UBaseType_t prvNetworkInterfaceInput( void )
541
while ( ( HAL_ETH_ReadData( &xEthHandle, ( void ** ) &pxCurDescriptor ) == HAL_OK ) )
542
{
543
/*configASSERT( xEthHandle.RxDescList.RxDataLength <= EMAC_DATA_BUFFER_SIZE );*/
544
+ if( pxCurDescriptor == NULL )
545
+ {
546
+ /* Buffer was dropped, ignore packet */
547
+ continue;
548
+ }
549
+
550
xResult++;
551
pxCurDescriptor->pxInterface = pxMyInterface;
552
pxCurDescriptor->pxEndPoint = FreeRTOS_MatchingEndpoint( pxMyInterface, pxCurDescriptor->pucEthernetBuffer );;
0 commit comments