Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sunrpc: Fix return value of get_srcport()
[ Upstream commit 5d46dd0 ] Since bc1c56e transport->srcport may by unset, causing get_srcport() to return 0 when called. Fix this by querying the port from the underlying socket instead of the transport. Fixes: bc1c56e (SUNRPC: prevent port reuse on transports which don't request it) Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information