mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-21 04:05:24 +00:00
The SAM E70 GMAC ethernet driver reference a packet with net_pkt_ref() when queueing a packet, and unreference it with net_pkt_unref() in the ISR when it has been fully sent. The call to net_pkt_ref() is done just after re-enabling the interruptions, so there is however a small race condition that might cause the packet to be unreference before being referenced. This is only theoretical and has not been seen in practice. Fix that by moving the call to net_pkt_ref() just before re-enabling the interruptions. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
eth_dw_priv.h | ||
eth_dw.c | ||
eth_e1000_priv.h | ||
eth_e1000.c | ||
eth_enc28j60_priv.h | ||
eth_enc28j60.c | ||
eth_mcux.c | ||
eth_native_posix_adapt.c | ||
eth_native_posix_priv.h | ||
eth_native_posix.c | ||
eth_sam_gmac_priv.h | ||
eth_sam_gmac.c | ||
eth_smsc911x_priv.h | ||
eth_smsc911x.c | ||
eth_stellaris_priv.h | ||
eth_stellaris.c | ||
eth_stm32_hal_priv.h | ||
eth_stm32_hal.c | ||
Kconfig | ||
Kconfig.dw | ||
Kconfig.e1000 | ||
Kconfig.enc28j60 | ||
Kconfig.mcux | ||
Kconfig.native_posix | ||
Kconfig.sam_gmac | ||
Kconfig.smsc911x | ||
Kconfig.stellaris | ||
Kconfig.stm32_hal | ||
phy_sam_gmac.c | ||
phy_sam_gmac.h |