]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: fix the if_id check in changelink
authorAntony Antony <antony.antony@secunet.com>
Tue, 1 Feb 2022 06:51:57 +0000 (07:51 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 3 Feb 2022 07:02:05 +0000 (08:02 +0100)
commitbab52b7b89e4ff6afef28f888a967e0549af43f7
treed935f4225ae36a1263a21c4389f4d8c3b5c21625
parentc96ab85f9d662b734a5ede6b55291c07238d6863
xfrm: fix the if_id check in changelink

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

Fixes: e134b7e872db ("xfrm: interface with if_id 0 should return error")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c