diff --git a/src/util/virnuma.c b/src/util/virnuma.c index 20f1e564b2..06520f78eb 100644 --- a/src/util/virnuma.c +++ b/src/util/virnuma.c @@ -460,7 +460,7 @@ virNumaNodeIsAvailable(int node) return false; /* Do we have anything better? */ - return (node >= 0) && (node < max_node); + return (node >= 0) && (node <= max_node); }