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 <redacted>
Signed-off-by: Boris Pismeny <redacted>
---
net/xfrm/xfrm_device.c | 1 +
1 file changed, 1 insertion(+)
From: Shannon Nelson <hidden> Date: 2018-01-18 17:25:55
On 1/18/2018 5:41 AM, Aviad Yehezkel wrote:
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 <redacted>
Signed-off-by: Boris Pismeny <redacted>
Thanks - I was wondering about that a couple of days ago and hadn't
gotten back to it.
Signed-off-by: Shannon Nelson <redacted>
On Thu, Jan 18, 2018 at 03:41:51PM +0200, Aviad Yehezkel wrote:
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 <redacted>
Signed-off-by: Boris Pismeny <redacted>