From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40060.outbound.protection.outlook.com [40.107.4.60]) by dpdk.org (Postfix) with ESMTP id 763F81B197 for ; Tue, 23 Oct 2018 09:09:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hIHSuxLrTVh2VC8oE8oeI89onS6S76kC769QjKd9b4k=; b=AaZxgPseItq9L+7URSFw0Cxp/ZAkwkwfiNCYHO0C9I6Fhoi47GygV1m2BctiRpXcy+EZXABMIe+gLEdb/vEABezO4kwnKiB32tH2fnKoCuAj++QuSPnFp9UkvRgmMdUGbmW+P5nOJvdC2EpUIlv2EIOGz0pH8WzRZRFC2lhITro= Received: from VI1PR04MB4688.eurprd04.prod.outlook.com (20.177.56.80) by VI1PR04MB1632.eurprd04.prod.outlook.com (10.164.84.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Tue, 23 Oct 2018 07:09:52 +0000 Received: from VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::88ff:b776:3f9c:5bb2]) by VI1PR04MB4688.eurprd04.prod.outlook.com ([fe80::88ff:b776:3f9c:5bb2%2]) with mapi id 15.20.1250.028; Tue, 23 Oct 2018 07:09:52 +0000 From: Shreyansh Jain To: Rosen Xu , "dev@dpdk.org" CC: "tianfei.zhang@intel.com" , Hemant Agrawal , "ferruh.yigit@intel.com" Thread-Topic: [dpdk-dev] [PATCH] drivers/raw/ifpga_rawdev: fix coverity issue 323508 Thread-Index: AQHUanLQMIUKYkT+zUSkA7fP7dwca6UsacQA Date: Tue, 23 Oct 2018 07:09:52 +0000 Message-ID: <74cb8aff-f809-b999-8c2e-17f24599d827@nxp.com> References: <1540259449-135300-1-git-send-email-rosen.xu@intel.com> In-Reply-To: <1540259449-135300-1-git-send-email-rosen.xu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.142.187.166] x-clientproxiedby: BM1PR0101CA0058.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::20) To VI1PR04MB4688.eurprd04.prod.outlook.com (2603:10a6:803:71::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1632; 6:WYjLj5lEb8/lziDDdWkg4g5EbQHFS7BKnrGzn4/DXWCnJAcCs/xK2Vek3BtoVouxFnsd2oQagugUY16lOh/Jkmc4VPdSoVd6pul9Ms5Q5pMlV2w3bAlVl+fFYQ62E0BQOkgP4zyQmH6EXrw+cpHHhXqPyghStc8/Y0vU35V3Sw6uH8Aq4Nkdc3/dhP9M9SmnOfvNaJ0HIkYQ5DWTzt3JeeDY+XvpmEGm9G6uVna6Pm5Ai0oqDQLUnGSUFwOAfgzBWPDiwLkIRaybv0EmM6kBPeQrhoYTsb/RO1eRTX5IHHlwFQFvVcp5360ug1sZyu6ixwS0orkmxgHyE+FJ1XR3V9lm8A1olHJ7/K2Yvro02wPJq5UiGVjO0T3RjsL3SauKNhpL3FI2IgoIKr1Rmi+lOf7+LbsD5r87FkuI4iAFPN/nP2Z2PLMqPyuQc1z3+drERfyABIaNId7tVx4KMmFCMQ==; 5:BsALIBx8DOYfX2ByOlXnO0AvGQ1dsN7Z7Yeuh8eyfPcWb9s192t5X5gtTcAhOKcRRYquCCgxmOcU06MXFGJaeFEwkfXBNWvsMNcWB431DGFngGQkGv56Qn6Ro+G4LG1ZTsfzEO1fgSlpqQrQmtbfc+8TaPdnCzjq6RyLQ97rWSI=; 7:vaq4ZG/GnKztU8Iz9MsjgZGDgMP0MfqCqeeKJlJ5UPLmvSv4y+yaPmgBBJ0lezk8Xo6m3csnNUseM+TU/JoKkZUyZizEBwJFxBShomvfJ6jK1EHmypD8VW1MLrqilwcMfvOdtUUnh/PsW34IQZ4vVfekhmEyCOfPZxHqHVzmOskqyAlcD7NVXcSFq3SeTCfmGFF4byqUDpJndx+iQmKzAnsfNZqvpyPnFbOZq+DbyfIqjdar/m6TUY3DB15igR2J x-ms-office365-filtering-correlation-id: fedd94b1-bdb5-432f-9f8b-08d638b686b2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1632; x-ms-traffictypediagnostic: VI1PR04MB1632: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB1632; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1632; x-forefront-prvs: 0834BAF534 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(346002)(39860400002)(396003)(366004)(189003)(199004)(5403001)(2501003)(8676002)(52116002)(76176011)(66066001)(6246003)(2900100001)(5660300001)(36756003)(31686004)(2906002)(99286004)(476003)(8936002)(486006)(305945005)(446003)(11346002)(2616005)(44832011)(6512007)(81166006)(26005)(102836004)(106356001)(105586002)(55236004)(186003)(6506007)(6486002)(81156014)(386003)(4326008)(31696002)(7736002)(54906003)(110136005)(5250100002)(78486010)(71190400001)(229853002)(316002)(14454004)(25786009)(71200400001)(478600001)(97736004)(68736007)(6116002)(3846002)(53936002)(6436002)(86362001)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1632; H:VI1PR04MB4688.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wBQQ7UnsiPAz7/4PuRjBBcR/JYngvvCEP1cVoxOJywy8X0e4c0Zghzo6auSiuUUMfeLyId05Ms0M3Q2qCaR6RIwOGPNgKxh6BOSEdZQuIY0JHgP3sQuJyvUWXIbsmH8JNEUS5kSSE4uAW38fBndouO5rb0cOLvB8P5gCATJZVCA1SHBGLlMuP/Dlqa7epv2lywgexlIUxgdfdJAmcWdTnUq7ZMsGflXQCZwyEJXSi7YdPiB0SxhWi6zh0xjzFKib+AC+9RJ2sHJe8XS1dzQDiFcKiJwvdpdNH0v08LwyBvbxvEUQJBu30bn24d3xYwXGgbTD9gl/S8CCnRaMfVRmVQO61HAxpZytBXYFQlJTLa4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <5A103086EFF99C42932FBD7092EAD6B0@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fedd94b1-bdb5-432f-9f8b-08d638b686b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 07:09:52.0810 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1632 Subject: Re: [dpdk-dev] [PATCH] drivers/raw/ifpga_rawdev: fix coverity issue 323508 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe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