zephyr/drivers
Bilal Wasim 10a05017bc drivers: eth: stm32: Fix driver crash caused by RX IRQ trigger
All initialization of the Ethernet interface is done in the
eth_initialize function which is invoked by the boot code.
This function sets up DMA, programs the Ethernet module and
enables IRQs. However, this function does not setup "netif"
interface info which is done when the ethernet device is
enumerated by the NET stack via the "iface_api.init" func.
However, after the eth_initialize func is called, it is
possible that the system receives RX interrupts, and the
"rx_thread" accesses the "netif" pointer to get iface info.
However, because the "netif" info is not necessarily
populated at this time, we get a crash (as OS does NULL
access).

Fixed by enabling Ethernet IRQ after the interface is
properly setup.

Tested on Nucleo F767Zi board.

Fixes #25408

Signed-off-by: Bilal Wasim <bilalwasim676@gmail.com>
2020-05-18 19:11:40 +02:00
..
adc devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
audio device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
bluetooth modules: stm32: Rename lib Kconfig symbol 2020-05-09 13:08:42 +02:00
can devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
clock_control devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
console device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
counter devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
crypto device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
dac devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
debug
display device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
dma devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
eeprom devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
entropy device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
espi drivers: espi: mchp: Report correct length during OOB Rx operation 2020-05-09 07:20:13 -04:00
ethernet drivers: eth: stm32: Fix driver crash caused by RX IRQ trigger 2020-05-18 19:11:40 +02:00
flash devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
gpio gpio: intel_apl: don't enable interrupt if line is output 2020-05-16 19:56:19 +02:00
hwinfo
i2c devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
i2s devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
ieee802154 device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
interrupt_controller interrupt_controller: device driver can configure IO APIC delivery mode 2020-05-08 22:32:39 -04:00
ipm device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
kscan device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
led devicetree: allow access to all nodes 2020-05-08 19:37:18 -05:00
led_strip devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
lora devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
modem device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
net drivers: Replace printf by printk when applicable 2020-05-09 21:25:33 +02:00
neural_net device: avoid casting away const from config_info pointer 2020-05-13 18:21:52 +02:00
pcie
peci
pinmux devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
ps2 device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
ptp_clock
pwm devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
sensor sensor: add sensor driver for Infineon DPS310 2020-05-14 11:02:29 +02:00
serial devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
spi devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
timer drivers: timer: get ppi configuration from dt 2020-05-18 11:07:57 +02:00
usb drivers: usb_dc_nrfx: Abort write on ep_ctx_reset 2020-05-14 13:28:46 +02:00
video device: Fix structure attributes access 2020-05-08 23:07:44 +02:00
watchdog devicetree: remove DT_HAS_NODE_STATUS_OKAY 2020-05-13 18:24:42 +02:00
wifi drivers: wifi: esp: Update to new timeout api 2020-05-12 17:18:34 +02:00
CMakeLists.txt
Kconfig