diff options
| author | Kuniyuki Iwashima <[email protected]> | 2022-11-18 18:25:06 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-11-21 13:05:39 +0000 |
| commit | 7a7160edf1bfde25422262fb26851cef65f695d3 (patch) | |
| tree | fdc0257f0c6b52d6e30b8d9d6f4a694a21d467b8 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | net: ethernet: renesas: rswitch: Fix MAC address info (diff) | |
| download | kernel-7a7160edf1bfde25422262fb26851cef65f695d3.tar.gz kernel-7a7160edf1bfde25422262fb26851cef65f695d3.zip | |
net: Return errno in sk->sk_prot->get_port().
We assume the correct errno is -EADDRINUSE when sk->sk_prot->get_port()
fails, so some ->get_port() functions return just 1 on failure and the
callers return -EADDRINUSE instead.
However, mptcp_get_port() can return -EINVAL. Let's not ignore the error.
Note the only exception is inet_autobind(), all of whose callers return
-EAGAIN instead.
Fixes: cec37a6e41aa ("mptcp: Handle MP_CAPABLE options for outgoing connections")
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
