From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AAE0AA0547 for ; Mon, 29 Mar 2021 03:45:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B524140D4F; Mon, 29 Mar 2021 03:45:05 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 05C7B40042; Mon, 29 Mar 2021 03:45:01 +0200 (CEST) IronPort-SDR: ruuCOwEbyDiTQZIqPesE0dfA7ZByeWmj8rrcBj6F5nEyvS4Pk7tBWPqpUMpQOEXny8zfyTKoE7 MvrsbhgCxZhg== X-IronPort-AV: E=McAfee;i="6000,8403,9937"; a="276617639" X-IronPort-AV: E=Sophos;i="5.81,285,1610438400"; d="scan'208";a="276617639" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2021 18:45:00 -0700 IronPort-SDR: yvkN19Y/qiMrp2sOpbWOxh7GKbuAv4Mx+iQ31V2PYYj8YjWaM599t2XjH4rTEzjFlH1pFThMoS E0aQv2Nb42mA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,285,1610438400"; d="scan'208";a="415240099" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga007.jf.intel.com with ESMTP; 28 Mar 2021 18:44:59 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sun, 28 Mar 2021 18:44:59 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 29 Mar 2021 09:44:57 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Mon, 29 Mar 2021 09:44:57 +0800 From: "Liu, Yong" To: wangyunjian , Maxime Coquelin , "Xia, Chenbo" CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] vhost: fix accessing uninitialized variables Thread-Index: AQHXD/7e0Mnn3Qr+iU+gkNCc9+o+sKqSgU0AgAS6NoCAAxxl4A== Date: Mon, 29 Mar 2021 01:44:57 +0000 Message-ID: <16b519966ac94f8b922c89f624c7c4eb@intel.com> References: <20210303072755.82979-1-yong.liu@intel.com> <9a853981-06f8-4ab4-f6a8-322ae8629a4b@redhat.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] vhost: fix accessing uninitialized variables X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogd2FuZ3l1bmppYW4gPHdh bmd5dW5qaWFuQGh1YXdlaS5jb20+DQo+IFNlbnQ6IFNhdHVyZGF5LCBNYXJjaCAyNywgMjAyMSA2 OjA2IFBNDQo+IFRvOiBNYXhpbWUgQ29xdWVsaW4gPG1heGltZS5jb3F1ZWxpbkByZWRoY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