Whamcloud - gitweb
LU-16081 lnet: Memory leak on adding existing interface 73/48173/7
authorFrank Sehr <fsehr@whamcloud.com>
Tue, 9 Aug 2022 17:10:54 +0000 (10:10 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 1 Sep 2022 05:53:59 +0000 (05:53 +0000)
commit26beb8664f4533a6e8532e4277ee65292d63434c
tree4b8ef4697e21fc6009cb228ed2dc551864dd8ccb
parentd4978678b49102226a79a6c8e5d10075d416977d
LU-16081 lnet: Memory leak on adding existing interface

In the function lnet_dyn_add_ni an lnet_ni structure is allocated.
In case of an error the function returns without freeing the memory of
the structure.
Added handling of possible lnet_net structure memory leaks.

Test-parameters: trivial testlist=sanity-lnet
Signed-off-by: Frank Sehr <fsehr@whamcloud.com>
Change-Id: I7544a9379093b99f77aaddb8d021b4a5bf221082
Reviewed-on: https://review.whamcloud.com/48173
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lustre/tests/sanity-lnet.sh