From: Bhavesh Davda Date: Wed, 6 Mar 2013 12:04:53 +0000 (+0000) Subject: vmxnet3: prevent div-by-zero panic when ring resizing uninitialized dev X-Git-Tag: v3.9-rc3~36^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4fabf2b6e6d75752d5eede57f23ff8e9c6aa09b;p=pandora-kernel.git 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 Signed-off-by: Shreyas N Bhatewara Signed-off-by: David S. Miller --- Reading git-diff-tree failed