aboutsummaryrefslogtreecommitdiff
path: root/balloon.c
diff options
context:
space:
mode:
Diffstat (limited to 'balloon.c')
-rw-r--r--balloon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/balloon.c b/balloon.c
index 0166744aa8..aa354f7554 100644
--- a/balloon.c
+++ b/balloon.c
@@ -108,7 +108,7 @@ void qmp_balloon(int64_t value, Error **errp)
}
if (value <= 0) {
- qerror_report(QERR_INVALID_PARAMETER_VALUE, "target", "a size");
+ error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size");
return;
}