Commit 3d2bdbd9 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by Yang Yingliang
Browse files

ping: Check return value of function 'ping_queue_rcv_skb'



stable inclusion
from linux-4.19.196
commit 1d86498c252e6b680710a31c3a003491477dd50d

--------------------------------

[ 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>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 26fbec78
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment