diff options
author | Aviad Yehezkel <[email protected]> | 2018-01-18 15:41:51 +0200 |
---|---|---|
committer | Steffen Klassert <[email protected]> | 2018-01-19 06:44:22 +0100 |
commit | aa5dd6fa6f5d4bdc82a67e952bba8ad2e98d77e2 (patch) | |
tree | 5a82ca3b3f6e651b76341476530f26c39f42a222 /lib/memory-notifier-error-inject.c | |
parent | cc01572e2fb080e279ca625f239aca61f435ebf3 (diff) |
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 <[email protected]>
Signed-off-by: Boris Pismeny <[email protected]>
Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions