Message ID | 1372445527-24414-83-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index ec6fb3f..dfff647 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -353,7 +353,8 @@ static void handle_tx(struct vhost_net *net) kref_get(&ubufs->kref); } vq->upend_idx = (vq->upend_idx + 1) % UIO_MAXIOV; - } + } else + msg.msg_control = NULL; /* TODO: Check specific error and bomb out unless ENOBUFS? */ err = sock->ops->sendmsg(NULL, sock, &msg, len); if (unlikely(err < 0)) {