net/bonding: fix crash when stopping mode 4 port
net/bonding: fix crash when stopping mode 4 port

When stopping a bonded port all slaves are deactivated. Attempting
to deactivate a slave that was never activated will result in a segfault
when mode 4 is used.

Fixes: 7486331308f6 ("net/bonding: stop and deactivate slaves on stop")
Cc: stable@dpdk.org

Signed-off-by: Radu Nicolau <fa459cf59d47c122ba776e9a6f631c862bf44680@intel.com>
Acked-by: Chas Williams <8e10b7fd9feb54c659058e7890a36a5f97dabfd9@att.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk