From: Xiao Wang Date: Sun, 25 Sep 2016 08:59:38 +0000 (+0800) Subject: net/ixgbe/base: fix pointer check X-Git-Tag: spdx-start~5806 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=11c1941b4a96afcc2092f80a469a41787fa3a492;p=dpdk.git net/ixgbe/base: fix pointer check The vfta_delta value rather than the pointer should be checked. Fixes: b978f7b38c14 ("net/ixgbe/base: simplify VLAN management") Signed-off-by: Xiao Wang Acked-by: Wenzhuo Lu --- diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 811875a469..161bf32071 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -3967,7 +3967,7 @@ s32 ixgbe_set_vlvf_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind, * we run the risk of stray packets leaking into * the PF via the default pool */ - if (vfta_delta) + if (*vfta_delta) IXGBE_WRITE_REG(hw, IXGBE_VFTA(vlan / 32), vfta); /* disable VLVF and clear remaining bit from pool */