Whamcloud - gitweb
LU-16573 lnet: Check empty list in cfs_match_nid_net 76/50576/2
authorChris Horn <chris.horn@hpe.com>
Fri, 7 Apr 2023 16:46:29 +0000 (10:46 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 22 Apr 2023 17:31:58 +0000 (17:31 +0000)
commitf3ba286b05d557b0d8924923eaf8788aa595b1b7
tree13eb949325b004df0176df12fd13c193d88badc5
parentadd0aa8a89f8711c13ebb5f0ca22eaf18f95685c
LU-16573 lnet: Check empty list in cfs_match_nid_net

cfs_match_nid_net() needs to check whether the list of range
expressions describing the address is empty. Otherwise, for numeric
based addresses, we may hit the assert in libcfs_num_match().

Test-Parameters: trivial testlist=sanity-lnet
HPE-bug-id: LUS-11480
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Id2460137607f5564751e729ee7b716d9151b5d37
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50576
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/nidstrings.c
lustre/tests/sanity-lnet.sh