]> git.baikalelectronics.ru Git - kernel.git/commit
ping: Check return value of function 'ping_queue_rcv_skb'
authorZheng Yongjun <zhengyongjun3@huawei.com>
Thu, 10 Jun 2021 01:41:36 +0000 (09:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 20:44:55 +0000 (13:44 -0700)
commitf84f30d3e9a680a4fcf527db7152044ca76b79ef
tree5b20c4edfff230b40e49a3a8900a6c2ee0390490
parent0fb7e2b380ff373ab87fba900d43e0dd5b98f33a
ping: Check return value of function 'ping_queue_rcv_skb'

Function 'ping_queue_rcv_skb' not always return success, which will
also return fail. If not check the wrong return value of it, lead to function
`ping_rcv` return success.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c