SUNRPC: rpcbind should never reset the port to the value '0'

[ Upstream commit 214c13e380 ]

If we already had a valid port number for the RPC service, then we
should not allow the rpcbind client to set it to the invalid value '0'.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Trond Myklebust 2025-03-24 19:05:48 -04:00 • committed by Greg Kroah-Hartman
commit 2328a3bf51