Skip to content
Commit eb6c59b7 authored by Anastasia Belova's avatar Anastasia Belova Committed by Steffen Klassert
Browse files

xfrm: compat: change expression for switch in xfrm_xlate64

Compare XFRM_MSG_NEWSPDINFO (value from netlink
configuration messages enum) with nlh_src->nlmsg_type
instead of nlh_src->nlmsg_type - XFRM_MSG_BASE.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 4e950506

 ("net/xfrm/compat: Copy xfrm_spdattr_type_t atributes")
Signed-off-by: default avatarAnastasia Belova <abelova@astralinux.ru>
Acked-by: default avatarDmitry Safonov <0x7f454c46@gmail.com>
Tested-by: default avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent b0355dbb
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