Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
This was reported by https://scan4.scan.coverity.com/#/project-view/10072/17272?selectedIssue=415060 and it does look legit.
Patch causing this : LU-10391 lnet: support updating LNet local NI settings (git show 9b05e872482)
Comparision will always be true. If it is the range which is required then it should be logical &&. ?
num = nla_get_s64(attr); if (num > -1 || num < 128) ## <--- This will always be true. tunables->lnd_tun_u.lnd_o2ib.lnd_conns_per_peer = num; else rc = -ERANGE;