net/bonding: fix port ID check
authorJunyu Jiang <junyux.jiang@intel.com>
Tue, 29 Oct 2019 02:23:41 +0000 (02:23 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
commit588ae95e79834495f78192fc6bb3ae14c152439f
treef1a6f5ada62e6a986045d654de05c348469facf7
parent2eb5dce8c0280dafef6dfbcc987331f7c27028cd
net/bonding: fix port ID check

Port validation should be prior to getting device data
to avoid segment fault. This patch fixed the segment fault
caused by invalid port using.

Fixes: 6d72657ce379 ("net/bonding: add other aggregator modes")
Fixes: 112891cd27e5 ("net/bonding: add dedicated HW queues for LACP control")
Cc: stable@dpdk.org
Signed-off-by: Junyu Jiang <junyux.jiang@intel.com>
Acked-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_8023ad.c