Acked-by: Chengwen Feng <[email protected]> On 5/27/2026 3:56 PM, David Marchand wrote: > Add rte_dev_is_probed() check in rte_dev_dma_map() and > rte_dev_dma_unmap() before calling bus-specific implementations. > > The device parameter passed to bus DMA map/unmap 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 .dma_map is done after dereferencing this pointer. > > Remove redundant checks on probed device, and NULL checks on the > device/driver parameter and derived device/driver pointers. > > Signed-off-by: David Marchand <[email protected]> > Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v3 14/25] bus: refactor device probe Stephen Hemminger
- Re: [PATCH v3 00/25] Consolidate bus driver infrast... David Marchand
- Re: [PATCH v3 00/25] Consolidate bus driver inf... David Marchand
- [PATCH v4 00/25] Consolidate bus driver infrastructure David Marchand
- [PATCH v4 01/25] bus/ifpga: remove unused AFU looku... David Marchand
- [PATCH v4 02/25] bus/uacce: set API version during ... David Marchand
- Re: [PATCH v4 02/25] bus/uacce: set API version... fengchengwen
- [PATCH v4 03/25] crypto/octeontx: remove check on d... David Marchand
- [PATCH v4 04/25] dma/idxd: clear device at scan David Marchand
- [PATCH v4 05/25] bus: remove device and driver chec... David Marchand
- Re: [PATCH v4 05/25] bus: remove device and dri... fengchengwen
- [PATCH v4 06/25] drivers/bus: remove device and dri... David Marchand
- Re: [PATCH v4 06/25] drivers/bus: remove device... fengchengwen
- [PATCH v4 07/25] drivers/bus: remove device and dri... 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

