]> git.baikalelectronics.ru Git - kernel.git/commit
net: Set ping saddr after we successfully get the ping port
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 25 Aug 2020 11:33:22 +0000 (07:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 13:18:13 +0000 (06:18 -0700)
commit98f43a2dfd1f4fd2471d60bae8f47125a71a6279
tree3d24c4d0e7b66153b872703202d4f12192537537
parentfbf846675cef54aa063d7a1909155fb02367514d
net: Set ping saddr after we successfully get the ping port

We can defer set ping saddr until we successfully get the ping port. So we
can avoid clear saddr when failed. Since ping_clear_saddr() is not used
anymore now, remove it.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c