aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/zstd.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-12-02 18:27:44 +0100
committerJakub Kicinski <kuba@kernel.org>2025-12-04 17:49:31 -0800
commitc4cdf7376271bce5714c06d79ec67759b18910eb (patch)
treed5fcadc2ef0fdb80b5c88200c8085b9e642f4b15 /crypto/zstd.c
parent6a107cfe9c99a079e578a4c5eb70038101a3599f (diff)
downloadnet-c4cdf7376271bce5714c06d79ec67759b18910eb.tar.gz
net: phy: marvell-88q2xxx: Fix clamped value in mv88q2xxx_hwmon_write
The local variable 'val' was never clamped to -75000 or 180000 because the return value of clamp_val() was not used. Fix this by assigning the clamped value back to 'val', and use clamp() instead of clamp_val(). Cc: stable@vger.kernel.org Fixes: a557a92e6881 ("net: phy: marvell-88q2xxx: add support for temperature sensor") Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Reviewed-by: Dimitri Fedrau <dima.fedrau@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20251202172743.453055-3-thorsten.blum@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'crypto/zstd.c')
0 files changed, 0 insertions, 0 deletions