Skip to content
Commit aa5dd6fa authored by Aviad Yehezkel's avatar Aviad Yehezkel Committed by Steffen Klassert
Browse files

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: default avatarAviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: default avatarBoris Pismeny <borisp@mellanox.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent cc01572e
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