mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
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:
parent
984d8a392f
commit
dac9e6af53
|
@ -820,9 +820,10 @@ static void rpcb_getport_done(struct rpc_task *child, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
trace_rpcb_setport(child, map->r_status, map->r_port);
|
trace_rpcb_setport(child, map->r_status, map->r_port);
|
||||||
xprt->ops->set_port(xprt, map->r_port);
|
if (map->r_port) {
|
||||||
if (map->r_port)
|
xprt->ops->set_port(xprt, map->r_port);
|
||||||
xprt_set_bound(xprt);
|
xprt_set_bound(xprt);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user