freebsd-skq/sys/rpc
Enji Cooper 1b53778113 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.

Differential Revision: https://reviews.freebsd.org/D6572
MFC after: 2 weeks
Reported by: Coverity
CID: 1007338, 1007339, 1007340
Reviewed by: markj, truckman
Sponsored by: EMC / Isilon Storage Division
2016-05-27 08:48:33 +00:00
..
rpcsec_gss kgssapi(4): Fix string overrun in Kerberos principal construction 2016-04-20 04:45:23 +00:00
auth_none.c
auth_unix.c
auth.h
authunix_prot.c
clnt_bck.c sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
clnt_dg.c sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
clnt_rc.c
clnt_stat.h
clnt_vc.c sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
clnt.h
getnetconfig.c
krpc.h
netconfig.h
nettype.h
pmap_prot.h
replay.c These files were getting sys/malloc.h and vm/uma.h with header pollution 2016-02-01 17:41:21 +00:00
replay.h
rpc_callmsg.c
rpc_com.h
rpc_generic.c Remove some NULL checks for M_WAITOK allocations. 2016-03-29 13:56:59 +00:00
rpc_msg.h
rpc_prot.c
rpc.h
rpcb_clnt.c
rpcb_clnt.h
rpcb_prot.c
rpcb_prot.h
rpcm_subs.h
rpcsec_gss.h
svc_auth_unix.c
svc_auth.c
svc_auth.h
svc_dg.c
svc_generic.c
svc_vc.c Quell false positives in svc_vc_create and svc_vc_create_conn with cd and xprt 2016-05-27 08:48:33 +00:00
svc.c Remove unnecessary memset(.., 0, ..)'s 2016-05-24 20:06:41 +00:00
svc.h sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
types.h sys/rpc: minor spelling fixes. 2016-05-06 01:49:46 +00:00
xdr.h