mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 06:20:02 +02:00
ice_dealloc_dynamic_port() uses dyn_port->vsi->idx to erase the dynamic
port from pf->dyn_ports. However, it frees the VSI before reading the
index for the erase, resulting in a use-after-free.
Follow the reverse of the allocation order in ice_alloc_dynamic_port()
by erasing the xarray entry before freeing the VSI.
Fixes:
|
||
|---|---|---|
| .. | ||
| devlink.c | ||
| devlink.h | ||
| health.c | ||
| health.h | ||
| port.c | ||
| port.h | ||