]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xfrm: use correct size to initialise sp->ovec
authorLi RongQing <lirongqing@baidu.com>
Sun, 7 Oct 2018 02:22:42 +0000 (10:22 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
commitbecf225cb250436a336905ce7ad5669ffa47a894
tree682fa1edd8b3c33b8b85e72845d8f9c75f311745
parentd8fc2055f6b9147514685fdfabd64ba5cf622d84
xfrm: use correct size to initialise sp->ovec

BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit f1193e915748291fb205a908db33bd3debece6e2 ]

This place should want to initialize array, not a element,
so it should be sizeof(array) instead of sizeof(element)

but now this array only has one element, so no error in
this condition that XFRM_MAX_OFFLOAD_DEPTH is 1

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/xfrm/xfrm_input.c