svn commit: r316544 - head/sys/dev/ixgbe

Sean Bruno sbruno at FreeBSD.org
Wed Apr 5 22:01:50 UTC 2017


Author: sbruno
Date: Wed Apr  5 22:01:49 2017
New Revision: 316544
URL: https://svnweb.freebsd.org/changeset/base/316544

Log:
  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 at viva64.com
  MFC after:	1 week

Modified:
  head/sys/dev/ixgbe/if_ix.c

Modified: head/sys/dev/ixgbe/if_ix.c
==============================================================================
--- head/sys/dev/ixgbe/if_ix.c	Wed Apr  5 21:08:26 2017	(r316543)
+++ head/sys/dev/ixgbe/if_ix.c	Wed Apr  5 22:01:49 2017	(r316544)
@@ -5991,7 +5991,7 @@ ixgbe_add_vf(device_t dev, u16 vfnum, co
 		 */
 		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);


More information about the svn-src-head mailing list