net/bnxt: fix crash
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 21 Jul 2017 03:22:27 +0000 (22:22 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
commit31ded672aa12ba36d9e287a80020c1f778d8fe33
tree1cfc8ed85688c4e4cf7bfebe40ec37a4eb9a2884
parent564be0240efab5607598600a270a5dc486de9df5
net/bnxt: fix crash

Fix use of local variable to avoid segfault.
cnt was incorrectly tested and decremented in the loop that removes
a VLAN from the table.

Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof")

Signed-off-by: Stephen Hurd <stephen.hurd@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/rte_pmd_bnxt.c