diff options
| -rw-r--r-- | drivers/vhost/net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 959b1cd89e6a..ec6fb3fa59bb 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
| @@ -339,7 +339,8 @@ static void handle_tx(struct vhost_net *net) | |||
| 339 | msg.msg_controllen = 0; | 339 | msg.msg_controllen = 0; |
| 340 | ubufs = NULL; | 340 | ubufs = NULL; |
| 341 | } else { | 341 | } else { |
| 342 | struct ubuf_info *ubuf = &vq->ubuf_info[head]; | 342 | struct ubuf_info *ubuf; |
| 343 | ubuf = vq->ubuf_info + vq->upend_idx; | ||
| 343 | 344 | ||
| 344 | vq->heads[vq->upend_idx].len = | 345 | vq->heads[vq->upend_idx].len = |
| 345 | VHOST_DMA_IN_PROGRESS; | 346 | VHOST_DMA_IN_PROGRESS; |
