aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_locked.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-10-04 17:30:21 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-15 10:45:30 +0000
commita086e304e4061569c0cb1cfb20a5c045c0e92c16 (patch)
treef8223721c3dade59aed90bbf8114b4bf141c2547 /src/vcl/vcl_locked.h
parentb022d3195a5a3f30c6a5b48af9bf00a0fcdcf976 (diff)
vlib: pci: set pci driver name to none when no driver is loaded
If no Linux PCI driver module is loaded, then the driver_name in the PCI info struct is NULL. This can triggers crash when checking driver name eg. in vlib_pci_device_open(). Default to "<NONE>" as driver name, which should never match. Type: fix Change-Id: I9e69889a7566467bd8220b92bbbaa72ada957257 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit 0eae2bb1f1199f7dcb6a8c62b1ea612ed9ee4ae1)
Diffstat (limited to 'src/vcl/vcl_locked.h')
0 files changed, 0 insertions, 0 deletions