Commit 8db3cf08 authored by Antony Antony's avatar Antony Antony Committed by Yongqiang Liu
Browse files

xfrm: fix the if_id check in changelink

stable inclusion
from linux-4.19.233
commit 33c4a43021acfb91e289b2d92e2db0f4a8fcf41e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5646A


CVE: NA

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

commit 6d0d95a1 upstream.

if_id will be always 0, because it was not yet initialized.

Fixes: 8dce4391 ("xfrm: interface with if_id 0 should return error")
Reported-by: default avatarPavel Machek <pavel@denx.de>
Signed-off-by: default avatarAntony Antony <antony.antony@secunet.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 2d3caf24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment