Are you going to fix clnt_clts and clnt_rmdma as well ?
Minor fixes in clnt_cots.c (11954, 11955)
Review Request #2449 — Created Nov. 11, 2019 and submitted
This fixes a potential memory leak in connmgr_get() and simplifies code around kmem_free(9f) in clnt_cots.c in some cases.
I ran debug build of NFS client with this change integrated for several days to make sure there is no panic. Everything worked as expected.
Status: Closed (submitted)
commit f67d64d998ff666158cc5231b7e80c11c3e922e0 Author: Marcel Telka <firstname.lastname@example.org> AuthorDate: Mon Nov 11 07:59:33 2019 +0100 Commit: Dan McDonald <email@example.com> CommitDate: Thu Nov 14 11:19:43 2019 -0500 11954 rpcmod: Possible memory leak in connmgr_get() 11955 clnt_cots: kmem_free(NULL, 0) is legal Reviewed by: Vitaliy Gusev <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org> :100644 100644 0c75b6dca6 d15710d467 M usr/src/uts/common/rpc/clnt_cots.c