Message ID | 20230516052405.2677554-4-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ec8f32ad9a65a8cbb465b69e154aaec9d2fe45c4 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [1/7] xfrm: don't check the default policy if the policy allows the packet | expand |
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 95f1436bf6a2..e2ca50bfca24 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -378,7 +378,7 @@ int xfrm_dev_policy_add(struct net *net, struct xfrm_policy *xp, break; default: xdo->dev = NULL; - dev_put(dev); + netdev_put(dev, &xdo->dev_tracker); NL_SET_ERR_MSG(extack, "Unrecognized offload direction"); return -EINVAL; }