sunrpc: removed redundant procp check
[ Upstream commita576f36971] since vs_proc pointer is dereferenced before getting it's address there's no need to check for NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes:8e5b67731d("SUNRPC: Add a callback to initialise server requests") Signed-off-by: Aleksandr Aprelkov <aaprelkov@usergate.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5c6705aa47
commit
33feac2e8d
@@ -1238,8 +1238,6 @@ svc_generic_init_request(struct svc_rqst *rqstp,
|
||||
if (rqstp->rq_proc >= versp->vs_nproc)
|
||||
goto err_bad_proc;
|
||||
rqstp->rq_procinfo = procp = &versp->vs_proc[rqstp->rq_proc];
|
||||
if (!procp)
|
||||
goto err_bad_proc;
|
||||
|
||||
/* Initialize storage for argp and resp */
|
||||
memset(rqstp->rq_argp, 0, procp->pc_argzero);
|
||||
|
||||
Reference in New Issue
Block a user