aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_device.c
diff options
context:
space:
mode:
authorYang Li <[email protected]>2022-07-28 03:10:19 +0000
committerJakub Kicinski <[email protected]>2022-07-29 04:50:39 +0000
commit8fd1e151779285b211e7184e9237bba69bd74386 (patch)
tree7d9da4d803b3c178fe28eed2ba51603efbc3d181 /net/tls/tls_device.c
parentMerge branch 'tls-rx-follow-ups-to-rx-work' (diff)
downloadkernel-8fd1e151779285b211e7184e9237bba69bd74386.tar.gz
kernel-8fd1e151779285b211e7184e9237bba69bd74386.zip
tls: rx: Fix unsigned comparison with less than zero
The return from the call to tls_rx_msg_size() is int, it can be a negative error code, however this is being assigned to an unsigned long variable 'sz', so making 'sz' an int. Eliminate the following coccicheck warning: ./net/tls/tls_strp.c:211:6-8: WARNING: Unsigned expression compared with zero: sz < 0 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Yang Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/tls/tls_device.c')
0 files changed, 0 insertions, 0 deletions