Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfrm interface: don't take extra reference to netdev

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>

authored by

Nicolas Dichtel and committed by
Steffen Klassert
e62905ae b6246f4d

-2
-2
net/xfrm/xfrm_interface.c
··· 145 145 if (err < 0) 146 146 goto out; 147 147 148 - dev_hold(dev); 149 148 xfrmi_link(xfrmn, xi); 150 149 151 150 return 0; ··· 174 175 struct xfrmi_net *xfrmn = net_generic(xi->net, xfrmi_net_id); 175 176 176 177 xfrmi_unlink(xfrmn, xi); 177 - dev_put(dev); 178 178 } 179 179 180 180 static void xfrmi_scrub_packet(struct sk_buff *skb, bool xnet)