On 08/23/2013 06:12 PM, Paolo Bonzini wrote:
Il 23/08/2013 12:03, Lei Li ha scritto:
Signed-off-by: Lei Li <li...@linux.vnet.ibm.com>
---
  savevm.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/savevm.c b/savevm.c
index 95a11f9..fb17a6f 100644
--- a/savevm.c
+++ b/savevm.c
@@ -649,7 +649,7 @@ void ram_control_after_iterate(QEMUFile *f, uint64_t flags)
void ram_control_load_hook(QEMUFile *f, uint64_t flags)
  {
-    int ret = 0;
+    int ret = EINVAL;
This should be "-EINVAL".

Ooops! Sorry for the rush as I was off line to go home...  :-[
Resend soon.


Paolo

      if (f->ops->hook_ram_load) {
          ret = f->ops->hook_ram_load(f, f->opaque, flags);




--
Lei


Reply via email to