-
由 Ben Hutchings 提交于
velocity_open() calls velocity_give_many_rx_descs(), which gives RX descriptors to the NIC, before installing an interrupt handler or calling velocity_init_registers(). I think this is very unsafe and it appears to explain the bug report <http://bugs.debian.org/508527>. On MTU change, velocity_give_many_rx_descs() is again called before velocity_init_registers(). I'm not sure whether this is unsafe but it does look wrong. Therefore, move the calls to velocity_give_many_rx_descs() after request_irq() and velocity_init_registers(). Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Tested-by: NJan Ceuleers <jan.ceuleers@computer.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
35bb5cad