]> 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)
commitebfa0b2099ea716d843029b34fcc54a7bf17fd87
tree3d24c4d0e7b66153b872703202d4f12192537537
parent651c77a0e85ca33a7b0159c3ed2fff9da9e277a3
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