diff options
| author | Vipin Sharma <[email protected]> | 2023-01-11 18:34:08 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2023-01-22 09:10:24 +0000 |
| commit | c2c46b10d52624376322b01654095a84611c7e09 (patch) | |
| tree | b8c2b46498de59ec690488d6e203d561c94357be /drivers/fpga/fpga-bridge.c | |
| parent | KVM: x86/vmx: Do not skip segment attributes if unusable bit is set (diff) | |
| download | kernel-c2c46b10d52624376322b01654095a84611c7e09.tar.gz kernel-c2c46b10d52624376322b01654095a84611c7e09.zip | |
KVM: selftests: Make reclaim_period_ms input always be positive
reclaim_period_ms used to be positive only but the commit 0001725d0f9b
("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: 0001725d0f9b ("KVM: selftests: Add atoi_positive() and atoi_non_negative() for input validation")
Signed-off-by: Vipin Sharma <[email protected]>
Reported-by: Ben Gardon <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Reviewed-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
