summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-01-17 12:36:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 10:04:53 +0100
commitc257c15845e7c083bcf26acc7a9302caf18fc797 (patch)
treed795c7df7fabad22e344a8edc024e227fa22b53b /tools
parent6bb91eb7c0791f32ada814d43ca067756fc94a9f (diff)
downloadlinux-c257c15845e7c083bcf26acc7a9302caf18fc797.tar.gz
linux-c257c15845e7c083bcf26acc7a9302caf18fc797.tar.bz2
linux-c257c15845e7c083bcf26acc7a9302caf18fc797.zip
tipc: re-order conditions in tipc_crypto_key_rcv()
[ Upstream commit 5fe71fda89745fc3cd95f70d06e9162b595c3702 ] On a 32bit system the "keylen + sizeof(struct tipc_aead_key)" math could have an integer wrapping issue. It doesn't matter because the "keylen" is checked on the next line, but just to make life easier for static analysis tools, let's re-order these conditions and avoid the integer overflow. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions