xfrm: use correct size to initialise sp->ovec
authorLi RongQing <lirongqing@baidu.com>
Sun, 7 Oct 2018 02:22:42 +0000 (10:22 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Oct 2018 06:15:55 +0000 (08:15 +0200)
commitf1193e915748291fb205a908db33bd3debece6e2
treedb561a6836493674ad6a5ec7fa847e65aca74722
parentb7138fddd6893a455cc82249f3d12ae651023543
xfrm: use correct size to initialise sp->ovec

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>
net/xfrm/xfrm_input.c