Whamcloud - gitweb
LU-17621 lnet: fix conns_per_peer bounds check 26/54326/4
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Fri, 8 Mar 2024 03:28:43 +0000 (08:58 +0530)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Mar 2024 06:12:03 +0000 (06:12 +0000)
commitf8283515762a66e556c8ee253d694a8423ccd4a2
treea7612ce26be7d51c164134896128ba4bb87fe701
parent02fc9e89775fe7f16d0aa78e369fec6313fec411
LU-17621 lnet: fix conns_per_peer bounds check

Logical opreator '||' would always result in 'TRUE',
allowing any arbitrary conns_per_peer value to be set.
Change Logical operator from '||' to '&&' to correctly
compare that the value is within range.

Test-Parameters: trivial testlist=sanity-lnet
Fixes: 9b05e872482e ("LU-10391 lnet: support updating LNet local NI settings")
CoverityID: 415060 ("Logically dead code")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ibcaf18060cae1fc62fe41ee6237abaad1fd2de7f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54326
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c