diff options
| author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-07-20 16:04:42 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-18 13:40:14 +0200 |
| commit | f02ab9d1d3a64f8d6bb4294295770fc897fa736f (patch) | |
| tree | 7698e16f4aff3e70da6556f9402d58ab7f4f8dc0 /drivers | |
| parent | 21a2be1a5145d072deedc7cdc5b2d17380abea75 (diff) | |
sunrpc: Fix return value of get_srcport()
[ Upstream commit 5d46dd04cb68771f77ba66dbf6fd323a4a2ce00d ]
Since bc1c56e9bbe9 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: bc1c56e9bbe9 (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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions
