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)
commit6d0d95a1c2b07270870e7be16575c513c29af3f1
treed935f4225ae36a1263a21c4389f4d8c3b5c21625
parenta6d95c5a628a09be129f25d5663a7e9db8261f51
xfrm: fix the if_id check in changelink

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

Fixes: 8dce43919566 ("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