From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 019F939EA for ; Mon, 9 May 2016 10:51:44 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 09 May 2016 01:51:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,600,1455004800"; d="scan'208";a="971622809" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 09 May 2016 01:51:41 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 9 May 2016 01:51:14 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 9 May 2016 01:51:13 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.58]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.116]) with mapi id 14.03.0248.002; Mon, 9 May 2016 16:49:52 +0800 From: "Zhang, Helin" To: "Mrzyglod, DanielX T" CC: "dev@dpdk.org" Thread-Topic: [PATCH] examples/kni: unchecked return value Thread-Index: AQHRqc3mjD3TkvvRb0GW+JOncgeTRZ+wS7Ng Date: Mon, 9 May 2016 08:49:49 +0000 Message-ID: References: <1462786710-22032-1-git-send-email-danielx.t.mrzyglod@intel.com> In-Reply-To: <1462786710-22032-1-git-send-email-danielx.t.mrzyglod@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGEyYmU5ZDctN2VkMS00NDhhLWFlOTQtMWM0ZjU5OGI5YTExIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Ilwva2FDQ0hCdjFLOVF1N3JVWCs5NHJsZGN3elNCXC9oRWlQXC9IS1RneXIybTA9In0= x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples/kni: unchecked return value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 08:51:45 -0000 > -----Original Message----- > From: Mrzyglod, DanielX T > Sent: Monday, May 9, 2016 5:39 PM > To: Zhang, Helin > Cc: dev@dpdk.org; Mrzyglod, DanielX T > Subject: [PATCH] examples/kni: unchecked return value >=20 > Fix issue reported by Coverity. > Coverity ID 30692 >=20 > If the function returns an error value, the error value may be mistaken f= or a > normal value. >=20 > In kni_free_kni: Value returned from a function is not checked for errors= before > being used >=20 > Fixes: b475eb0bc400 ("examples/kni: new parameters") >=20 > Signed-off-by: Daniel Mrzyglod Acked-by: Helin Zhang