lkml.org 
[lkml]   [2022]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v8 6/7] KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation
On Wed, Nov 02, 2022, Vipin Sharma wrote:
> 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>

\
 
 \ /
  Last update: 2022-11-03 01:18    [W:1.954 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site