Skip to content
Commit c2c46b10 authored by Vipin Sharma's avatar Vipin Sharma Committed by Paolo Bonzini
Browse files

KVM: selftests: Make reclaim_period_ms input always be positive



reclaim_period_ms used to be positive only but the commit 0001725d
("KVM: selftests: Add atoi_positive() and atoi_non_negative() for input
validation") incorrectly changed it to non-negative validation.

Change validation to allow only positive input.

Fixes: 0001725d ("KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation")
Signed-off-by: default avatarVipin Sharma <vipinsh@google.com>
Reported-by: default avatarBen Gardon <bgardon@google.com>
Reviewed-by: default avatarBen Gardon <bgardon@google.com>
Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
Message-Id: <20230111183408.104491-1-vipinsh@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent a44b3316
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment