app/pdump: remove only created vdevs
authorGage Eads <gage.eads@intel.com>
Tue, 26 Feb 2019 16:04:37 +0000 (10:04 -0600)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:36 +0000 (18:17 +0100)
commit499ca6161007d95d6727c4236b53fe8036efda00
treebe14570112059c14be1c9e7bcc3a984232fd568f
parentc19429844c0257aceb29fdc845dbd16115966986
app/pdump: remove only created vdevs

This commit fixes a bug in which a unidirectional pdump could attempt to
remove devices it didn't create.

Fixes: 35cb223ab7be ("app/pdump: fix vdev cleanup")
Cc: stable@dpdk.org
Signed-off-by: Gage Eads <gage.eads@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
app/pdump/main.c