Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cb1eb80 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

s390/crypto: Fix unsigned variable compared with zero



[ Upstream commit 0398d4ab1677f7d8cd43aac2aa29a93dfcf9e2e3 ]

s390_crypto_shash_parmsize() return type is int, it
should not be stored in a unsigned variable, which
compared with zero.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Fixes: 3c2eb6b7 ("s390/crypto: Support for SHA3 via CPACF (MSA6)")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJoerg Schmidbauer <jschmidb@linux.vnet.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0a12ce14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment