* [dpdk-stable] [PATCH 17.11] vhost: release locks on RARP packet failure
@ 2018-08-01 7:41 Tiwei Bie
0 siblings, 0 replies; only message in thread
From: Tiwei Bie @ 2018-08-01 7:41 UTC (permalink / raw)
To: stable; +Cc: jfreimann
[ upstream commit 0989161b2636a9c9fc526baebaa7fb473e36a3cb ]
Fixes: eefac9536a90 ("vhost: postpone device creation until rings are mapped")
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-01 7:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 7:41 [dpdk-stable] [PATCH 17.11] vhost: release locks on RARP packet failure Tiwei Bie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).