2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 22:54:11 +08:00
linux-next/drivers/net/ethernet/broadcom/genet
Johan Hovold d397dbe606 net: bcmgenet: fix OF child-node lookup
Use the new of_get_compatible_child() helper to lookup the mdio child
node instead of using of_find_compatible_node(), which searches the
entire tree from a given start node and thus can return an unrelated
(i.e. non-child) node.

This also addresses a potential use-after-free (e.g. after probe
deferral) as the tree-wide helper drops a reference to its first
argument (i.e. the node of the device being probed).

Fixes: aa09677cba ("net: bcmgenet: add MDIO routines")
Cc: stable <stable@vger.kernel.org>     # 3.15
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
2018-10-23 13:28:52 -05:00
..
bcmgenet_wol.c net: bcmgenet: remove handling of wol interrupts from isr0 2017-03-13 21:51:50 -07:00
bcmgenet.c net/dim: Rename *_get_profile() functions to *_get_rx_moderation() 2018-04-24 10:15:07 -04:00
bcmgenet.h net: bcmgenet: Fix coalescing settings handling 2018-03-30 10:03:36 -04:00
bcmmii.c net: bcmgenet: fix OF child-node lookup 2018-10-23 13:28:52 -05:00
Makefile net: bcmgenet: add Wake-on-LAN support code 2014-07-21 16:04:31 -07:00