From owner-svn-src-all@freebsd.org Wed Apr 5 22:01:50 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87E96D2DC16; Wed, 5 Apr 2017 22:01:50 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A2AEC67; Wed, 5 Apr 2017 22:01:50 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v35M1nib094325; Wed, 5 Apr 2017 22:01:49 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v35M1nU9094324; Wed, 5 Apr 2017 22:01:49 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201704052201.v35M1nU9094324@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Wed, 5 Apr 2017 22:01:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316544 - head/sys/dev/ixgbe X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 22:01:50 -0000 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@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);