diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 978a60c90a6fdf5a87f5db3d394041c04905f445..55b55da784036c32d4438a76c7bdc93da645a043 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -822,7 +822,8 @@ x86DataToCPU(const virCPUx86Data *data, for (blocker = hvModel->blockers; *blocker; blocker++) { if ((feature = x86FeatureFind(map, *blocker)) && !x86DataIsSubset(©, &feature->data)) - x86DataAdd(&modelData, &feature->data); + if (x86DataAdd(&modelData, &feature->data) < 0) + goto error; } }