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)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:47:20 +0000 (08:47 -0400)
commit61b132f67c0d69ff367a8b52f42f0ececffc89e4
tree3bbdcddb7d1d52ca098670f42d4ca1afb945535d
parent08c389de6d53ce6055573e4edd4e2010d1789f05
ping: Check return value of function 'ping_queue_rcv_skb'

[ Upstream commit 9d44fa3e50cc91691896934d106c86e4027e61ca ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/ping.c