mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 08:44:14 +08:00
63b08b1f68
When processing port up/down events generated by the device's firmware,
the driver protects itself from events reported for non-existent local
ports, but not the CPU port (local port 0), which exists, but lacks a
netdev.
This can result in a NULL pointer dereference when calling
netif_carrier_{on,off}().
Fix this by bailing early when processing an event reported for the CPU
port. Problem was only observed when running on top of a buggy emulator.
Fixes:
|
||
---|---|---|
.. | ||
mlx4 | ||
mlx5/core | ||
mlxbf_gige | ||
mlxfw | ||
mlxsw | ||
Kconfig | ||
Makefile |