projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6246f4
)
xfrm interface: don't take extra reference to netdev
author
Nicolas Dichtel
<nicolas.dichtel@6wind.com>
Thu, 23 Apr 2020 09:39:20 +0000
(11:39 +0200)
committer
Steffen Klassert
<steffen.klassert@secunet.com>
Mon, 27 Apr 2020 06:50:49 +0000
(08:50 +0200)
I don't see any reason to do this. Maybe needed before
commit
56c5ee1a5823
("xfrm interface: fix memory leak on creation").
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface.c
patch
|
blob
|
history
diff --git
a/net/xfrm/xfrm_interface.c
b/net/xfrm/xfrm_interface.c
index 3361e3ac5714cc6c751afe3eed996f8956180696..eb9928c0a87cfb3a3b20f127586c44e8047ee815 100644
(file)
--- a/
net/xfrm/xfrm_interface.c
+++ b/
net/xfrm/xfrm_interface.c
@@
-145,7
+145,6
@@
static int xfrmi_create(struct net_device *dev)
if (err < 0)
goto out;
- dev_hold(dev);
xfrmi_link(xfrmn, xi);
return 0;
@@
-175,7
+174,6
@@
static void xfrmi_dev_uninit(struct net_device *dev)
struct xfrmi_net *xfrmn = net_generic(xi->net, xfrmi_net_id);
xfrmi_unlink(xfrmn, xi);
- dev_put(dev);
}
static void xfrmi_scrub_packet(struct sk_buff *skb, bool xnet)