From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by dpdk.org (Postfix, from userid 33) id 6056E5F17; Fri, 7 Dec 2018 15:55:03 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 07 Dec 2018 14:55:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: valentin.radulescu@enea.com X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 121] In ixgbe_tx_free_bufs function the variable free on stack is used before initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2018 14:55:03 -0000 https://bugs.dpdk.org/show_bug.cgi?id=3D121 Bug ID: 121 Summary: In ixgbe_tx_free_bufs function the variable free on stack is used before initialization Product: DPDK Version: unspecified Hardware: All OS: All Status: CONFIRMED Severity: normal Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: valentin.radulescu@enea.com Target Milestone: --- static __rte_always_inline int ixgbe_tx_free_bufs(struct ixgbe_tx_queue *txq) { .... struct rte_mbuf *m, *free[RTE_IXGBE_TX_MAX_FREE_BUF_SZ]; .... if (nb_free >=3D RTE_IXGBE_TX_MAX_FREE_BUF_SZ || (nb_free > 0 && m->pool !=3D free[0]->pool)) { <---free[0] is f= rom the stack rte_mempool_put_bulk(free[0]->pool, (void **)free, nb_free); nb_free =3D 0; } free[nb_free++] =3D m; <-- free is set later } --=20 You are receiving this mail because: You are the assignee for the bug.=