diff options
| author | Nina Schoetterl-Glausch <[email protected]> | 2024-01-11 09:48:05 +0000 |
|---|---|---|
| committer | Janosch Frank <[email protected]> | 2024-02-23 13:02:27 +0000 |
| commit | 00de073e2420df02ac0f1a19dbfb60ff8eb198be (patch) | |
| tree | 024d4f7cb3eb4c058066997412b64fd45e5cdbde /drivers/fpga/fpga-region.c | |
| parent | KVM: s390: only deliver the set service event bits (diff) | |
| download | kernel-00de073e2420df02ac0f1a19dbfb60ff8eb198be.tar.gz kernel-00de073e2420df02ac0f1a19dbfb60ff8eb198be.zip | |
KVM: s390: selftest: memop: Fix undefined behavior
If an integer's type has x bits, shifting the integer left by x or more
is undefined behavior.
This can happen in the rotate function when attempting to do a rotation
of the whole value by 0.
Fixes: 0dd714bfd200 ("KVM: s390: selftest: memop: Add cmpxchg tests")
Signed-off-by: Nina Schoetterl-Glausch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Janosch Frank <[email protected]>
Signed-off-by: Janosch Frank <[email protected]>
Message-Id: <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions
