linux/net/core
Russell King 9861f72074 net: fix net_device refcounting
of_find_net_device_by_node() uses class_find_device() internally to
lookup the corresponding network device.  class_find_device() returns
a reference to the embedded struct device, with its refcount
incremented.

Add a comment to the definition in net/core/net-sysfs.c indicating the
need to drop this refcount, and fix the DSA code to drop this refcount
when the OF-generated platform data is cleaned up and freed.  Also
arrange for the ref to be dropped when handling errors.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-09-24 23:04:53 -07:00
..
datagram.c
dev.c netpoll: Close race condition between poll_one_napi and napi_disable 2015-09-23 14:32:50 -07:00
dev_addr_lists.c
dev_ioctl.c
drop_monitor.c
dst.c tun_dst: Remove opts_size 2015-08-31 21:23:42 -07:00
ethtool.c
fib_rules.c fib_rules: fix fib rule dumps across multiple skbs 2015-09-24 15:21:54 -07:00
filter.c ebpf: emit correct src_reg for conditional jumps 2015-09-11 14:52:41 -07:00
flow.c flow: Move __get_hash_from_flowi{4,6} into flow_dissector.c 2015-09-01 17:00:24 -07:00
flow_dissector.c flow_dissector: Use 'const' where possible. 2015-09-01 21:19:17 -07:00
gen_estimator.c
gen_stats.c
link_watch.c
lwtunnel.c lwt: Add cfg argument to build_state 2015-08-24 10:34:40 -07:00
Makefile
neighbour.c
net-procfs.c
net-sysfs.c net: fix net_device refcounting 2015-09-24 23:04:53 -07:00
net-sysfs.h
net-traces.c net: FIB tracepoints 2015-08-29 13:05:16 -07:00
net_namespace.c
netclassid_cgroup.c
netevent.c
netpoll.c netpoll: Close race condition between poll_one_napi and napi_disable 2015-09-23 14:32:50 -07:00
netprio_cgroup.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c rtnetlink: catch -EOPNOTSUPP errors from ndo_bridge_getlink 2015-09-15 15:03:57 -07:00
scm.c
secure_seq.c
skbuff.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-08-27 21:45:31 -07:00
sock.c net: core: drop null test before destroy functions 2015-09-15 16:49:43 -07:00
sock_diag.c sock, diag: fix panic in sock_diag_put_filterinfo 2015-09-02 11:29:29 -07:00
stream.c
sysctl_net_core.c
timestamping.c
tso.c
utils.c net: Add inet_proto_csum_replace_by_diff utility function 2015-08-17 21:33:06 -07:00