Acked-by: Chengwen Feng <[email protected]> On 5/27/2026 3:56 PM, David Marchand wrote: > rte_dev_remove() checks if a device is probed before calling the bus > unplug operation. Individual bus detach/remove functions checking that > dev->driver is non-NULL are therefore redundant. > > However, when the unplug operation is called at bus cleanup, care must > be taken that devices are in probed state, so some check on > rte_dev_is_probed() must be added. > > The device parameter passed to bus unplug operations cannot be NULL as > the caller already dereferenced the bus structure to invoke these > operations. > The driver reference in the bus-specific device cannot be NULL since > calling the .unplug is done after dereferencing this pointer. > > Signed-off-by: David Marchand <[email protected]> > Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v3 00/25] Consolidate bus driver infras... David Marchand
- [PATCH v4 00/25] Consolidate bus driver infrastructure David Marchand
- [PATCH v4 01/25] bus/ifpga: remove unused AFU lookup h... David Marchand
- [PATCH v4 02/25] bus/uacce: set API version during sca... David Marchand
- [PATCH v4 03/25] crypto/octeontx: remove check on driv... David Marchand
- [PATCH v4 04/25] dma/idxd: clear device at scan David Marchand
- [PATCH v4 05/25] bus: remove device and driver checks ... David Marchand
- [PATCH v4 06/25] drivers/bus: remove device and driver... David Marchand
- Re: [PATCH v4 06/25] drivers/bus: remove device an... fengchengwen
- [PATCH v4 07/25] drivers/bus: remove device and driver... David Marchand
- [PATCH v4 08/25] bus: add bus conversion macros David Marchand
- [PATCH v4 10/25] bus: factorize device list David Marchand
- [PATCH v4 09/25] bus: factorize driver list David Marchand
- [PATCH v4 11/25] bus: consolidate device lookup David Marchand
- [PATCH v4 12/25] bus: consolidate device iteration David Marchand
- [PATCH v4 13/25] bus: factorize driver lookup David Marchand
- [PATCH v4 14/25] bus: refactor device probe David Marchand
- [PATCH v4 15/25] bus: support multiple probe David Marchand
- Re: [PATCH v4 15/25] bus: support multiple probe fengchengwen

