浏览代码

net/9p: fix virtio transport to correctly update status on connect

The 9p virtio transport was not updating its connection status correctly
preventing it from being able to mount the server.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Eric Van Hensbergen 15 年之前
父节点
当前提交
562ada6120
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      net/9p/trans_virtio.c

+ 1 - 0
net/9p/trans_virtio.c

@@ -311,6 +311,7 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)
 	}
 
 	client->trans = (void *)chan;
+	client->status = Connected;
 	chan->client = client;
 
 	return 0;