Skip to content

Commit a8e8775

Browse files
committed
Kinetis EMAC: Correct TX ring pointer array size
TX pointer array was using RX ring length in its declaration. Wasted memory if RX ring > TX ring, as is the default, but would be broken if RX ring < TX ring.
1 parent 30e68f3 commit a8e8775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/netsocket/emac-drivers/TARGET_Freescale_EMAC/kinetis_emac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ uint8_t *rx_desc_start_addr;
5555
// RX packet buffer pointers
5656
emac_mem_buf_t *rx_buff[ENET_RX_RING_LEN];
5757
// TX packet buffer pointers
58-
emac_mem_buf_t *tx_buff[ENET_RX_RING_LEN];
58+
emac_mem_buf_t *tx_buff[ENET_TX_RING_LEN];
5959
// RX packet payload pointers
6060
uint32_t *rx_ptr[ENET_RX_RING_LEN];
6161

0 commit comments

Comments
 (0)