diff options
author | Greg Kurz <groug@kaod.org> | 2020-10-20 18:09:27 +0200 |
---|---|---|
committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2020-11-01 19:44:29 +0100 |
commit | 382619eff506bd229c7ba0d5671c84b6f1a0a415 (patch) | |
tree | 6a6f9953356cb4430d8ca2c8da0348d84e5f102e /tests/qtest/virtio-9p-test.c | |
parent | 1c450e6efe14a7c76f4e75d7316c9fdf00e757c0 (diff) |
tests/9pfs: Set alloc in fs_create_dir()
fs_create_dir() is a top level test function. It should set alloc.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160321016764.266767.3763279057643874020.stgit@bahia.lan>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Diffstat (limited to 'tests/qtest/virtio-9p-test.c')
-rw-r--r-- | tests/qtest/virtio-9p-test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c index 92d12f5e02..ab59431d79 100644 --- a/tests/qtest/virtio-9p-test.c +++ b/tests/qtest/virtio-9p-test.c @@ -1019,6 +1019,7 @@ static void fs_readdir_split_512(void *obj, void *data, static void fs_create_dir(void *obj, void *data, QGuestAllocator *t_alloc) { QVirtio9P *v9p = obj; + alloc = t_alloc; struct stat st; char *root_path = virtio_9p_test_path(""); char *new_dir = virtio_9p_test_path("01"); |