aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_mode_tunnel.c
diff options
context:
space:
mode:
authorAviad Yehezkel <aviadye@mellanox.com>2018-01-18 15:41:51 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2018-01-19 06:44:22 +0100
commitaa5dd6fa6f5d4bdc82a67e952bba8ad2e98d77e2 (patch)
tree5a82ca3b3f6e651b76341476530f26c39f42a222 /net/ipv6/xfrm6_mode_tunnel.c
parentxfrm: Add SA to hardware at the end of xfrm_state_construct() (diff)
downloadlinux-dev-aa5dd6fa6f5d4bdc82a67e952bba8ad2e98d77e2.tar.xz
linux-dev-aa5dd6fa6f5d4bdc82a67e952bba8ad2e98d77e2.zip
xfrm: fix error flow in case of add state fails
If add state fails in case of device offload, netdev refcount will be negative since gc task is attempting to dev_free this state. This is fixed by putting NULL in state dev field. Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com> Signed-off-by: Boris Pismeny <borisp@mellanox.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6/xfrm6_mode_tunnel.c')
0 files changed, 0 insertions, 0 deletions