Skip to content

Commit 9905483

Browse files
pgreenlandarchigup
authored andcommitted
Fix buffer allocation failure handling in STM32 NetworkInterface
HAL_ETH_RxAllocateCallback should return a NULL ptr to indicate allocation failure.
1 parent 2cd5307 commit 9905483

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/portable/NetworkInterface/STM32/NetworkInterface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ void HAL_ETH_RxAllocateCallback( uint8_t ** ppucBuff )
19051905
else
19061906
{
19071907
FreeRTOS_debug_printf( ( "HAL_ETH_RxAllocateCallback: failed\n" ) );
1908+
*ppucBuff = NULL;
19081909
}
19091910
}
19101911

0 commit comments

Comments
 (0)