From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:46069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rld9E-0006L6-N1 for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:10:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rld9D-0002wi-Hc for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:10:08 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:39790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rld9C-0002uk-Rd for qemu-devel@nongnu.org; Fri, 13 Jan 2012 04:10:07 -0500 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Jan 2012 08:54:50 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0D95DwS3006652 for ; Fri, 13 Jan 2012 20:05:16 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0D99cxM018495 for ; Fri, 13 Jan 2012 20:09:38 +1100 From: "Aneesh Kumar K.V" Date: Fri, 13 Jan 2012 14:39:35 +0530 Message-Id: <1326445775-19598-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH] hw/9pfs: Fix crash when mounting with synthfs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, "Aneesh Kumar K.V" From: "Aneesh Kumar K.V" Some Fsdriver backend don't have fs_root. So check for that in migrate message. Signed-off-by: Aneesh Kumar K.V --- 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 e6ba6ba..dfe2025 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); -- 1.7.8.1.362.g5d6df