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>
This commit is contained in:
Greg Kurz 2020-10-20 18:09:27 +02:00 committed by Christian Schoenebeck
parent 1c450e6efe
commit 382619eff5
1 changed files with 1 additions and 0 deletions

View File

@ -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) static void fs_create_dir(void *obj, void *data, QGuestAllocator *t_alloc)
{ {
QVirtio9P *v9p = obj; QVirtio9P *v9p = obj;
alloc = t_alloc;
struct stat st; struct stat st;
char *root_path = virtio_9p_test_path(""); char *root_path = virtio_9p_test_path("");
char *new_dir = virtio_9p_test_path("01"); char *new_dir = virtio_9p_test_path("01");