]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r301801:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 17:59:30 +0000 (17:59 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 10 Jun 2016 17:59:30 +0000 (17:59 +0000)
commit8074f792e6d5f642f76624d3ec77bd78ee84e5ae
treea59f2bb6e84134ec835b881ceb8dd725fc9d5557
parent99945beacc430fb8c7c4412e2538c34fefa151bb
MFstable/10 r301801:

MFC r300836:

Quell false positives in svc_vc_create and svc_vc_create_conn with cd and xprt

Both cd and xprt will be non-NULL after their respective malloc(9) wrappers are
called (mem_alloc and svc_xprt_alloc, which calls mem_alloc) as mem_alloc
always gets called with M_WAITOK|M_ZERO today. Thus, testing for them being
non-NULL is incorrect -- it misleads Coverity and it misleads the reader.

Remove some unnecessary NULL initializations as a follow up to help solidify
the fact that these pointers will be initialized properly in sys/rpc/.. with
the interfaces the way they are currently.

CID: 100733810073391007340

git-svn-id: svn://svn.freebsd.org/base/stable/9@301802 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/svc_vc.c