qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFC 4/5] pci-assign: Avoid qerror_report_err() outsi


From: zhanghailiang
Subject: [Qemu-devel] [PATCH RFC 4/5] pci-assign: Avoid qerror_report_err() outside QMP command handlers
Date: Sat, 28 Feb 2015 17:05:26 +0800

qerror_report_err() is a transitional interface to help with
converting existing monitor commands to QMP.  It should not be used
elsewhere.  Replace by error_report_err() in assigned_initfn().

Signed-off-by: zhanghailiang <address@hidden>
---
 hw/i386/kvm/pci-assign.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c
index bd92c69..f2f4e07 100644
--- a/hw/i386/kvm/pci-assign.c
+++ b/hw/i386/kvm/pci-assign.c
@@ -1831,8 +1831,7 @@ out:
 
 exit_with_error:
     assert(local_err);
-    qerror_report_err(local_err);
-    error_free(local_err);
+    error_report_err(local_err);
     return -1;
 }
 
-- 
1.7.12.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]