From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: [PATCH] net/dpaa2: fix mac address initialization Date: Wed, 17 Oct 2018 06:04:25 +0000 Message-ID: <20181017060350.7006-1-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: Shreyansh Jain To: "dev@dpdk.org" , "thomas@monjalon.net" Return-path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00048.outbound.protection.outlook.com [40.107.0.48]) by dpdk.org (Postfix) with ESMTP id 7E35A201 for ; Wed, 17 Oct 2018 08:04:26 +0200 (CEST) Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: c3e0a706fd75 ("net/dpaa2: read hardware provided MAC for DPNI device= s") Signed-off-by: Shreyansh Jain --- - In response to the sys_stv@intel.com reported issue "Fwd: | ERROR | daily Intel builds (38/49)" drivers/net/dpaa2/dpaa2_ethdev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_eth= dev.c index 27ae4740e..3987d13df 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -1846,7 +1846,10 @@ populate_mac_addr(struct fsl_mc_io *dpni_dev, struct= dpaa2_dev_priv *priv, struct ether_addr *mac_entry) { int ret; - struct ether_addr phy_mac =3D {}, prime_mac =3D {}; + struct ether_addr phy_mac, prime_mac; + + memset(&phy_mac, 0, sizeof(struct ether_addr)); + memset(&prime_mac, 0, sizeof(struct ether_addr)); =20 /* Get the physical device MAC address */ ret =3D dpni_get_port_mac_addr(dpni_dev, CMD_PRI_LOW, priv->token, --=20 2.17.1