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
This commit is contained in:
parent
d204af1e41
commit
ec2408187e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316544
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user