瀏覽代碼

Merge branch 'vhost-net' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

David S. Miller 15 年之前
父節點
當前提交
3779298b81
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/vhost/net.c

+ 1 - 1
drivers/vhost/net.c

@@ -243,7 +243,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,
 	int r, nlogs = 0;
 
 	while (datalen > 0) {
-		if (unlikely(headcount >= VHOST_NET_MAX_SG)) {
+		if (unlikely(seg >= VHOST_NET_MAX_SG)) {
 			r = -ENOBUFS;
 			goto err;
 		}