[PATCH] bus/auxiliary: fix auxiliary device port destruction

Thomas Monjalon thomas at monjalon.net
Wed Jul 9 12:24:33 CEST 2025


07/07/2025 12:06, Gregory Etelson:
> DPDK auxiliary bus first creates a list of known devices in the
> `auxiliary_bus.device_list` and then tries to attach a driver to each
> device on that list.
> 
> If the driver attachment has failed, a device will remain on the list.
> 
> The device destruction did not validate driver existence and
> crashed.
> 
> The patch validates auxiliary device driver before accessing
> driver related resources.
> 
> Fixes: 1afce3086cf4 ("bus/auxiliary: introduce auxiliary bus")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>

Applied, thanks.





More information about the dev mailing list