summaryrefslogtreecommitdiff
path: root/lib/librte_vhost
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.bie@intel.com>2018-07-25 22:18:11 +0800
committerTiwei Bie <tiwei.bie@intel.com>2018-07-26 10:02:52 +0200
commit0989161b2636a9c9fc526baebaa7fb473e36a3cb (patch)
treed6a57869c002d00bec644c3013fb44be29728610 /lib/librte_vhost
parent14962a9c4f55b1a476246f279e999b555f78bbbe (diff)
downloaddpdk-0989161b2636a9c9fc526baebaa7fb473e36a3cb.zip
dpdk-0989161b2636a9c9fc526baebaa7fb473e36a3cb.tar.gz
dpdk-0989161b2636a9c9fc526baebaa7fb473e36a3cb.tar.xz
vhost: release locks on RARP packet failure
Fixes: eefac9536a90 ("vhost: postpone device creation until rings are mapped") Cc: stable@dpdk.org Signed-off-by: Tiwei Bie <tiwei.bie@intel.com> Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Diffstat (limited to 'lib/librte_vhost')
-rw-r--r--lib/librte_vhost/virtio_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c
index 5779bcf..07c8237 100644
--- a/lib/librte_vhost/virtio_net.c
+++ b/lib/librte_vhost/virtio_net.c
@@ -1628,7 +1628,8 @@ rte_vhost_dequeue_burst(int vid, uint16_t queue_id,
if (rarp_mbuf == NULL) {
RTE_LOG(ERR, VHOST_DATA,
"Failed to make RARP packet.\n");
- return 0;
+ count = 0;
+ goto out;
}
count -= 1;
}