Skip to content

Commit

Permalink
Fix rc check for xen_set_maxmemkb (#1727)
Browse files Browse the repository at this point in the history
  • Loading branch information
tklengyel authored Oct 16, 2023
1 parent ee0bc46 commit d341a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libdrakvuf/vmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ bool init_vmi(drakvuf_t drakvuf, bool fast_singlestep)
/* domain->max_pages is mostly just an annoyance that we can safely ignore */
rc = xen_set_maxmemkb(drakvuf->xen, drakvuf->domID, ~0);
PRINT_DEBUG("Max mem set? %i\n", rc);
if (rc < 0)
if (!rc)
return 0;

drakvuf->sink_page_gfn = ++(drakvuf->max_gpfn);
Expand Down

0 comments on commit d341a46

Please sign in to comment.