diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-06-26 10:26:20 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-01 17:25:02 -0700 |
commit | 0f50ce96b7c0488cffe64255694a2451b4347d09 (patch) | |
tree | 3528808aef384c8c63420ca544d1944c915d0473 /drivers/vhost | |
parent | 16f62d9bed0cdee5f9341b64cc7144869282122d (diff) |
net: bcmgenet: disable clock before register_netdev
As soon as register_netdev() is called, the network device notifiers are
running which means that other parts of the kernel, or user-space
programs can call the network device ndo_open() callback and use the
interface.
Disable the Ethernet device clock before we register the network device
such that we do not create the following situation:
CPU0 CPU1
register_netdev()
bcmgenet_open()
clk_prepare_enable()
clk_disable_unprepare()
and leave the hardware block gated off, while we think it should be
gated on.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions