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 5F007A054F for ; Thu, 9 Jun 2022 05:52:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54351427F9; Thu, 9 Jun 2022 05:52:50 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 4222C40220; Thu, 9 Jun 2022 05:52:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654746768; x=1686282768; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=n57+x7nYfbXjeecMllZtocGDbcGk6sEiu7e3v5y5GBk=; b=itdCsw4JvkOq6KHktmWeoqa6JrftdaJuq1mxJ51235NVNNULXOrHP1Lc WYHbi6esgAWpe3G5MQa2tZKJj/9+X23W8hm97bVtgjDfZolLvsU9aUCe2 dqCNDV8Xv8ccjh+mDs//L7m2e38joTP6oK+tpuxp9yDpo1zCmfKfKs1Al GkLxPsExIsw5hSvj8n+YbzhwgOa0T2BHmaDz3rhQTegsuahBCAxIwLhFD w/dy4lSa/dx5+D0pWM0ibhKiM8aPd0G/fCvHotxR5hfCdZYjTm1SEcSY9 q7InbVqRSyoYGr0vIyaKWXIdJg0jqEu3v0oRezbG9dhfeIi8reh3JAvK2 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="341223474" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="341223474" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2022 20:52:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="670944498" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by FMSMGA003.fm.intel.com with ESMTP; 08 Jun 2022 20:52:45 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 8 Jun 2022 20:52:45 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 8 Jun 2022 20:52:45 -0700 Received: from fmsmsx612.amr.corp.intel.com ([10.18.126.92]) by fmsmsx612.amr.corp.intel.com ([10.18.126.92]) with mapi id 15.01.2308.027; Wed, 8 Jun 2022 20:52:45 -0700 From: "Hu, Jiayu" To: Maxime Coquelin CC: dev , dpdk stable , David Marchand Subject: RE: [PATCH] vhost: fix null pointer dereference Thread-Topic: [PATCH] vhost: fix null pointer dereference Thread-Index: AQHYdY1f0rEdA0lMPU62JZiUWV8Sy61GfUcw Date: Thu, 9 Jun 2022 03:52:45 +0000 Message-ID: References: <20220328020754.1155063-1-jiayu.hu@intel.com> <969db8c8-7e9e-755f-a436-bc230a591905@redhat.com> In-Reply-To: <969db8c8-7e9e-755f-a436-bc230a591905@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.500.17 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 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 SGkgTWF4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