mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
sunrpc: Fix return value of get_srcport()
Sincebc1c56e9bbtransport->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:bc1c56e9bb(SUNRPC: prevent port reuse on transports which don't request it) Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
f99fa50880
commit
5d46dd04cb
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue