Skip to content
Commit 5d46dd04 authored by Anna Schumaker's avatar Anna Schumaker
Browse files

sunrpc: Fix return value of get_srcport()

Since bc1c56e9 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: bc1c56e9

 (SUNRPC: prevent port reuse on transports which don't request it)
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent f99fa508
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment