]> 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)
commit9d44fa3e50cc91691896934d106c86e4027e61ca
tree5b20c4edfff230b40e49a3a8900a6c2ee0390490
parent3bdd5ee0ec8c14131d560da492e6df452c6fdd75
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