diff options
| author | Aneesh Kumar K.V | 2012-01-19 07:51:12 +0100 |
|---|---|---|
| committer | Aneesh Kumar K.V | 2012-01-30 06:24:16 +0100 |
| commit | 71f86cd6f396fe3ede575d7dde5dbabb4a6d006e (patch) | |
| tree | dcbf18b01611b7ffea175956b68ab46ffea500b4 /hw/9pfs | |
| parent | hw/9pfs: Preserve S_ISGID (diff) | |
| download | qemu-71f86cd6f396fe3ede575d7dde5dbabb4a6d006e.tar.gz qemu-71f86cd6f396fe3ede575d7dde5dbabb4a6d006e.tar.xz qemu-71f86cd6f396fe3ede575d7dde5dbabb4a6d006e.zip | |
hw/9pfs: Fix crash when mounting with synthfs
Some Fsdriver backend don't have fs_root. So check for that in
migrate message.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs')
| -rw-r--r-- | hw/9pfs/virtio-9p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index e6ba6ba30b..dfe2025ed2 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -986,7 +986,7 @@ static void v9fs_attach(void *opaque) s->root_fid = fid; /* disable migration */ error_set(&s->migration_blocker, QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION, - s->ctx.fs_root, s->tag); + s->ctx.fs_root ? s->ctx.fs_root : "NULL", s->tag); migrate_add_blocker(s->migration_blocker); out: put_fid(pdu, fidp); |
