]> git.hungrycats.org Git - linux/commit
sunrpc: removed redundant procp check
authorAleksandr Aprelkov <aaprelkov@usergate.com>
Wed, 27 Mar 2024 07:10:44 +0000 (14:10 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:47 +0000 (09:49 +0200)
commitc684bf624e2f2633a3ae97981cf2b9ba7937f06a
tree5f4bb2af625d98fc29d69a2070bafb62a8f3b69b
parent4c4ba3cf3a15ccfbaf787d0296fa42cdb00da9b4
sunrpc: removed redundant procp check

[ Upstream commit a576f36971ab4097b6aa76433532aa1fb5ee2d3b ]

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: 8e5b67731d08 ("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>
net/sunrpc/svc.c