From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 37FCBA0352; Mon, 4 Nov 2019 12:46:32 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6C88D4CA6; Mon, 4 Nov 2019 12:46:31 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80043.outbound.protection.outlook.com [40.107.8.43]) by dpdk.org (Postfix) with ESMTP id 9BB3A4C9D for ; Mon, 4 Nov 2019 12:46:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FOga7kWXjFpF9b8PoBj4umiCRzrvVtn3eTvJJ6Z8CRzK8OKnSSG797StSCqcWwcfdeO0t0FSw9CFqlQSzLGX5R82l464fgkJNtPl3kZGrwySiHXtXJQT/VSuiD9+4e7aXtRAuTxfHqqkObskVj4B/CaGYuABCh1qIx4MhwQRv6X379g/nAUYKA0HoceWTHzqoNG91a2a1eTVHALi0CTxOAxLk+yEQlD5j2tSDTQ0bJvMGJfXRFTIfsJ2yI0/PWdmO5XsF2HSy1R3+9ibSKDi5XjlWSsGQWC5kaYZOc0HnVpjkyvDqqe7XeAN8OXY8NhqzAVBtvooZA31kSZFZUbi7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dif74QcmCNfJmPERvHXkAhEnbOD9YZD+19wTZ6a0y1U=; b=O5TVyiXJiHgkOVSDWF2J8osYkTQd80bdpx6KMIfXTP/P1x6NmHjvvGFQR59mHdHTVVUc/TmGQKL/m5q1JmOjQOwbD8bpEFZUHE1hiruiTmMxgrbTiZBAYzodm/8roKUTRZ8D3vZvYAIrrGKkPKDU9EZfxw0K9T/OGnpjZXRWy4s8WuDYnRb4sPdoRw19wCRtLvedw/Xbu5OSICQXuQaeeZDBbWUMXHz+kF9295b+A041MDQwjvdVVE+mgsSHNQI0sJp7NLmLPPVS3tW3j95cXTsoBF11a2FugWc5S+mnPHM8Du8RvUJ4v0kAAGN4SZf9LdVh348UPB/rHTHc50SXlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dif74QcmCNfJmPERvHXkAhEnbOD9YZD+19wTZ6a0y1U=; b=lmKevVyvSQyLU/6VgMKecG4zcmAK+GV7u0aaZOClVCHOEbb6J2hNCL92Cg/pp7uesC0o5Pgxgh6Kyy8kNBWjiEdQVcnBVdlLMp8Hl1upnp1qCYqwolZOXxqq1mUXMRNDhkboEEU3EUzMyajjybqP80pMd9norwF6u8z3TS4CHK0= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.62.139) by VI1PR0401MB2685.eurprd04.prod.outlook.com (10.168.66.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Mon, 4 Nov 2019 11:46:29 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::b0c5:3e17:6ab7:5c26]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::b0c5:3e17:6ab7:5c26%10]) with mapi id 15.20.2408.024; Mon, 4 Nov 2019 11:46:29 +0000 From: Hemant Agrawal To: Andrzej Ostruszka , "dev@dpdk.org" , Sachin Saxena CC: "mattias.ronnblom@ericsson.com" , "stephen@networkplumber.org" Thread-Topic: [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars Thread-Index: AQHVjmLtiwPpbj6CgEWZKXo2i/r7Wqd66uqg Date: Mon, 4 Nov 2019 11:46:29 +0000 Message-ID: References: <20191028142145.3758-1-aostruszka@marvell.com> <20191029141212.4907-1-aostruszka@marvell.com> <20191029141212.4907-9-aostruszka@marvell.com> In-Reply-To: <20191029141212.4907-9-aostruszka@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-originating-ip: [92.120.1.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3507fc63-80db-449f-95b3-08d7611ca1a3 x-ms-traffictypediagnostic: VI1PR0401MB2685:|VI1PR0401MB2685: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4303; x-forefront-prvs: 0211965D06 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(39860400002)(396003)(376002)(136003)(199004)(189003)(13464003)(33656002)(54906003)(110136005)(316002)(2906002)(305945005)(8936002)(14454004)(81156014)(81166006)(74316002)(8676002)(478600001)(66946007)(66556008)(66446008)(64756008)(76116006)(7736002)(25786009)(66476007)(6636002)(99286004)(26005)(2501003)(66066001)(86362001)(55016002)(7696005)(6436002)(53546011)(6506007)(102836004)(6246003)(71190400001)(71200400001)(76176011)(11346002)(446003)(9686003)(4326008)(256004)(14444005)(186003)(476003)(44832011)(486006)(5660300002)(229853002)(52536014)(3846002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2685; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BspoIKgGOmgRORptbk9wrH7Dv1SIN06upfyvQ/dr7tR6QjAHWnPhjEfS2zTJ//VL6TFK0fBNU6em9zClMzsD+88LReu1e4nKtbtWjS1YLjLOqHncWd7uJAOiMvJZ0qQDj1pdNPoyt3ErG4PBeDIvfndqiN/xb1ClnyliQijF7sCjMZfrpcbTjiXE03QeJlYJPyEhbYSk/KzY2IVs49XClndk34n9wum+iB0gvfyM+UqtABqgeZ3NK/eWXDpdwOW5fvOTl6fWClSFJucCyLYE6w9WE23uX6zF7lc3brhxuwW/nTPIqGJZ+NZRkqZqpmgTMdl18D+qarFNIMavCzNtydtcROnrHw4+ccY1+V1yMEA95Nrv2DtLIp+ffpD73zfP3oZzhhylci2u14YNXo2g/ZTLRRwb69zLcYygpeKOT/m5JnCChgjqEhjIXjkoVlw/ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3507fc63-80db-449f-95b3-08d7611ca1a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2019 11:46:29.4435 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: H+p5iU/KsMmSC+/RfwflSaHFkB9UZQ+t9HaXn+NbA8njP2vrgH3UdkXFVyi7GkJwb+mJm8WzUqTwZs6A7PUjNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2685 Subject: Re: [dpdk-dev] [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" SGkgQW5kcnplag0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEFuZHJ6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