eal: fix check for default plugin directory
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 6 Nov 2017 13:58:00 +0000 (13:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 00:42:04 +0000 (01:42 +0100)
commitdd74b786f24a1e8c4e6656b94c73ab0d217de023
tree355e25850547886fadb082ee3412a6745d1d6e88
parent29906b97436649bae27effd74686091e7ede8522
eal: fix check for default plugin directory

The check for the existence of the default plugin directory calls stat
using an incorrect variable, which will cause a NULL pointer dereference
error.

Coverity issue: 198440
Fixes: d6a4399cdfc9 ("eal: avoid error for non-existent default PMD path")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Aaron Conole <aconole@redhat.com>
lib/librte_eal/common/eal_common_options.c