bus/vdev: fix uninitialized device bus
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 22 Oct 2018 05:47:11 +0000 (13:47 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Oct 2018 10:40:14 +0000 (12:40 +0200)
commit9ffe2f4e18e91b24a8890a88e62443f4183ce8a3
treebbc3911ac509397c243da2800404ca3311033518
parent1dd342d0fdc4f72102f0b48c89b6a39f029004fe
bus/vdev: fix uninitialized device bus

Device bus should be initialized after bus scan.
While it does not happened when scan vdev from secondary process,
that cause segment fault at rte_dev_probe when call dev->bus->xxx.

Fixes: cdb068f031c6 ("bus/vdev: scan by multi-process channel")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
drivers/bus/vdev/vdev.c