From 407fee0f026faf3296f08231e862799fbc2740c5 Mon Sep 17 00:00:00 2001 From: "Aneesh Kumar K.V" Date: Thu, 26 May 2011 14:41:15 +0530 Subject: hw/9pfs: Update the fidp path before opendir We need to update the fidp path before opendir. Since we don't use the fid returned by mkdir, earlier code should not have much issue. We do a double v9fs_string_copy here. The later patch cleanup the entire function. Signed-off-by: Aneesh Kumar K.V --- hw/9pfs/virtio-9p.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/9pfs/virtio-9p.c') diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 94b7090e7d..71bc51b3ca 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -2106,6 +2106,7 @@ static void v9fs_create(void *opaque) if (err < 0) { goto out; } + v9fs_string_copy(&fidp->path, &fullname); err = v9fs_co_opendir(pdu->s, fidp); if (err < 0) { goto out; -- cgit v1.2.1