Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
qemu-testsuite.4225
0118-9pfs-adjust-the-order-of-resource-c.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0118-9pfs-adjust-the-order-of-resource-c.patch of Package qemu-testsuite.4225
From 809afbf8e17075a4b8ff1058a342369ad52179bb Mon Sep 17 00:00:00 2001 From: Li Qiang <liq3ea@gmail.com> Date: Wed, 23 Nov 2016 13:53:34 +0100 Subject: [PATCH] 9pfs: adjust the order of resource cleanup in device unrealize Unrealize should undo things that were set during realize in reverse order. So should do in the error path in realize. Signed-off-by: Li Qiang <liq3ea@gmail.com> Reviewed-by: Greg Kurz <groug@kaod.org> Signed-off-by: Greg Kurz <groug@kaod.org> (cherry picked from commit 4774718e5c194026ba5ee7a28d9be49be3080e42) [BR: CVE-2016-9913 BSC#1014110] Signed-off-by: Bruce Rogers <brogers@suse.com> --- hw/9pfs/9p.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c index e7c580c03e..ef717b0b1b 100644 --- a/hw/9pfs/9p.c +++ b/hw/9pfs/9p.c @@ -3480,8 +3480,8 @@ int v9fs_device_realize_common(V9fsState *s, Error **errp) rc = 0; out: if (rc) { - g_free(s->ctx.fs_root); g_free(s->tag); + g_free(s->ctx.fs_root); v9fs_path_free(&path); } return rc; @@ -3489,8 +3489,8 @@ out: void v9fs_device_unrealize_common(V9fsState *s, Error **errp) { - g_free(s->ctx.fs_root); g_free(s->tag); + g_free(s->ctx.fs_root); } static void __attribute__((__constructor__)) v9fs_set_fd_limit(void)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor