From ec2408187ece7bc0ad43fc207237e46149758317 Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Wed, 5 Apr 2017 22:01:49 +0000 Subject: Don't overrite vf->flags variable at the end of ixgbe(4) ixgbe_add_vf(). Found by PVS-Studio Static code analyzer. PR: 217748 Submitted by: razmyslov@viva64.com MFC after: 1 week --- sys/dev/ixgbe/if_ix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c index f54dbf7f573fc..f45b737a20345 100644 --- a/sys/dev/ixgbe/if_ix.c +++ b/sys/dev/ixgbe/if_ix.c @@ -5991,7 +5991,7 @@ ixgbe_add_vf(device_t dev, u16 vfnum, const nvlist_t *config) */ vf->flags |= IXGBE_VF_CAP_MAC; - vf->flags = IXGBE_VF_ACTIVE; + vf->flags |= IXGBE_VF_ACTIVE; ixgbe_init_vf(adapter, vf); IXGBE_CORE_UNLOCK(adapter); -- cgit v1.3