commit | e4fabf2b6e6d75752d5eede57f23ff8e9c6aa09b | [log] [tgz] |
---|---|---|
author | Bhavesh Davda <bhavesh@vmware.com> | Wed Mar 06 12:04:53 2013 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Mar 07 16:10:47 2013 -0500 |
tree | 9ec06708fed8c38ad59273d58a629a6852bfa577 | |
parent | c5b156794736142fa3120d488f260ff26da3d134 [diff] |
vmxnet3: prevent div-by-zero panic when ring resizing uninitialized dev Linux is free to call ethtool ops as soon as a netdev exists when probe finishes. However, we only allocate vmxnet3 tx/rx queues and initialize the rx_buf_per_pkt field in struct vmxnet3_adapter when the interface is opened (UP). Signed-off-by: Bhavesh Davda <bhavesh@vmware.com> Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>