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:48:57 +0000 (08:48 -0400)
commite1df54a22b5ced83a6fa49cc05d2912e6607a720
treebe791d8dda99a77748bb4dce9a50fde5f6d94a5f
parenta1440a9ab87ae6d38a25b740966cc8eb55b6076e
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