Skip to content
Commit 61b132f6 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Sasha Levin
Browse files

ping: Check return value of function 'ping_queue_rcv_skb'

[ Upstream commit 9d44fa3e

 ]

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: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 08c389de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment