Files
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2015-09-24 23:04:53 -07:00
..
2015-08-31 21:23:42 -07:00
2015-04-02 14:04:59 -04:00
2015-05-17 23:41:11 -04:00
2015-09-24 23:04:53 -07:00
2015-08-29 13:05:16 -07:00