aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorOliver Upton <[email protected]>2022-03-22 18:35:38 +0000
committerMarc Zyngier <[email protected]>2022-04-06 10:39:39 +0100
commit73b725c7a6c82eee10fa2d6752babefff795ca9a (patch)
treed514bc21fe4ffb9b5ddf38c0f961c0e161b4dd78 /lib/test_fortify/write_overflow-strlcpy-src.c
parent827c2ab3314814e1c7d873372c0fe0cad50ba1c5 (diff)
KVM: arm64: Drop unneeded minor version check from PSCI v1.x handler
We already sanitize the guest's PSCI version when it is being written by userspace, rejecting unsupported version numbers. Additionally, the 'minor' parameter to kvm_psci_1_x_call() is a constant known at compile time for all callsites. Though it is benign, the additional check against the PSCI kvm_psci_1_x_call() is unnecessary and likely to be missed the next time KVM raises its maximum PSCI version. Drop the check altogether and rely on sanitization when the PSCI version is set by userspace. No functional change intended. Signed-off-by: Oliver Upton <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions