mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue