mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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 <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
07ff2c4475
commit
407fee0f02
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue