3f27defe0c
vdev_probe calls driver->probe and set dev->device.driver,
which will be NULL if the probe fails.
In vdev_cleanup, drv = container_of(dev->device.driver)
drv will be !NULL in this case, causing drv->remove
Segmentation fault.
Fixed by checking dev->device.driver before.
Log:
$ sudo dpdk-test --vdev=crypto_uadk --log-level=6
vdev_probe(): failed to initialize crypto_uadk device
EAL: Bus (vdev) probe failed.
RTE>>quit
Segmentation fault
Fixes:
|
||
---|---|---|
.. | ||
bus_vdev_driver.h | ||
meson.build | ||
rte_bus_vdev.h | ||
vdev_logs.h | ||
vdev_params.c | ||
vdev_private.h | ||
vdev.c | ||
version.map |