]> git.proxmox.com Git - mirror_qemu.git/commit
9pfs/xen: Fix segfault on shutdown
authorJason Andryuk <jandryuk@gmail.com>
Tue, 2 May 2023 14:37:22 +0000 (10:37 -0400)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Tue, 16 May 2023 14:21:54 +0000 (16:21 +0200)
commit92e667f6fd5806a6a705a2a43e572bd9ec6819da
tree8e5fb90f28af3433d81b0cc98973e9ff1028384b
parentf91ce58cb2eba96192bdbd730e7a0952873f6c05
9pfs/xen: Fix segfault on shutdown

xen_9pfs_free can't use gnttabdev since it is already closed and NULL-ed
out when free is called.  Do the teardown in _disconnect().  This
matches the setup done in _connect().

trace-events are also added for the XenDevOps functions.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Message-Id: <20230502143722.15613-1-jandryuk@gmail.com>
[C.S.: - Remove redundant return in xen_9pfs_free().
       - Add comment to trace-events. ]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
hw/9pfs/trace-events
hw/9pfs/xen-9p-backend.c