[libvirt] [PATCH] do not report OOM error when prepareCall() failed

Wen Congyang wency at cn.fujitsu.com
Mon Mar 21 06:29:35 UTC 2011


We have reported error in the function prepareCall(), and
the error is not only OOM error. So we should not report
OOM error in the function call() when prepareCall() failed.

---
 src/remote/remote_driver.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index b844d9a..5f3e288 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -10832,7 +10832,6 @@ call (virConnectPtr conn, struct private_data *priv,
                            ret_filter, ret);
 
     if (!thiscall) {
-        virReportOOMError();
         return -1;
     }
 
-- 
1.7.1




More information about the libvir-list mailing list