From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 3278356A3 for ; Wed, 1 Aug 2018 09:42:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2018 00:42:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,431,1526367600"; d="scan'208";a="61131822" Received: from debian.sh.intel.com ([10.67.104.228]) by orsmga007.jf.intel.com with ESMTP; 01 Aug 2018 00:42:20 -0700 From: Tiwei Bie To: stable@dpdk.org Cc: jfreimann@redhat.com Date: Wed, 1 Aug 2018 15:41:34 +0800 Message-Id: <20180801074134.3828-1-tiwei.bie@intel.com> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-stable] [PATCH 17.11] vhost: release locks on RARP packet failure X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 07:42:39 -0000 [ upstream commit 0989161b2636a9c9fc526baebaa7fb473e36a3cb ] Fixes: eefac9536a90 ("vhost: postpone device creation until rings are mapped") Signed-off-by: Tiwei Bie Reviewed-by: Jens Freimann --- lib/librte_vhost/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c index 93c2679c4..bde360f3d 100644 --- a/lib/librte_vhost/virtio_net.c +++ b/lib/librte_vhost/virtio_net.c @@ -1566,7 +1566,7 @@ rte_vhost_dequeue_burst(int vid, uint16_t queue_id, if (rarp_mbuf == NULL) { RTE_LOG(ERR, VHOST_DATA, "Failed to allocate memory for mbuf.\n"); - return 0; + goto out; } if (make_rarp_packet(rarp_mbuf, &dev->mac)) { -- 2.18.0