eal: fix possible crash in hotplug
authorGaetan Rivet <gaetan.rivet@6wind.com>
Thu, 3 Aug 2017 12:34:19 +0000 (14:34 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 3 Aug 2017 20:07:19 +0000 (22:07 +0200)
commit3054036f054a7486ae1979ce18d32c6e3d057b26
tree811c19ecf659b380b7d68e25f21e9a2e20721198
parentb631f3b0f24276855c2e6e9ef9dc7c2292a1ccd8
eal: fix possible crash in hotplug

If devargs is NULL, building the full_dev_name will segfault
when using strlen on it.

Coverity issue: 158630
Fixes: 7e8b26650146 ("eal: fix hotplug add / remove")

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/eal_common_dev.c