diff options
| author | Vipin Sharma <vipinsh@google.com> | 2022-11-03 12:17:18 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2022-11-16 10:03:24 -0800 |
| commit | 0001725d0f9b5d749540021befb67c117d566416 (patch) | |
| tree | 5789cf5ac497191de06a10ac0c22e577a382285f /tools/perf/scripts/python/bin | |
| parent | KVM: selftests: Shorten the test args in memslot_modification_stress_test.c (diff) | |
| download | linux-0001725d0f9b5d749540021befb67c117d566416.tar.gz linux-0001725d0f9b5d749540021befb67c117d566416.zip | |
KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation
Many KVM selftests take command line arguments which are supposed to be
positive (>0) or non-negative (>=0). Some tests do these validation and
some missed adding the check.
Add atoi_positive() and atoi_non_negative() to validate inputs in
selftests before proceeding to use those values.
Signed-off-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20221103191719.1559407-7-vipinsh@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
