diff options
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 2 | ||||
-rw-r--r-- | drivers/net/cxgb3/sge.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 4e3c12371aae..407d4e272075 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++ b/drivers/net/cxgb3/cxgb3_main.c | |||
@@ -3301,7 +3301,6 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
3301 | pi->rx_offload = T3_RX_CSUM | T3_LRO; | 3301 | pi->rx_offload = T3_RX_CSUM | T3_LRO; |
3302 | pi->port_id = i; | 3302 | pi->port_id = i; |
3303 | netif_carrier_off(netdev); | 3303 | netif_carrier_off(netdev); |
3304 | netif_tx_stop_all_queues(netdev); | ||
3305 | netdev->irq = pdev->irq; | 3304 | netdev->irq = pdev->irq; |
3306 | netdev->mem_start = mmio_start; | 3305 | netdev->mem_start = mmio_start; |
3307 | netdev->mem_end = mmio_start + mmio_len - 1; | 3306 | netdev->mem_end = mmio_start + mmio_len - 1; |
@@ -3342,6 +3341,7 @@ static int __devinit init_one(struct pci_dev *pdev, | |||
3342 | adapter->name = adapter->port[i]->name; | 3341 | adapter->name = adapter->port[i]->name; |
3343 | 3342 | ||
3344 | __set_bit(i, &adapter->registered_device_map); | 3343 | __set_bit(i, &adapter->registered_device_map); |
3344 | netif_tx_stop_all_queues(adapter->port[i]); | ||
3345 | } | 3345 | } |
3346 | } | 3346 | } |
3347 | if (!adapter->registered_device_map) { | 3347 | if (!adapter->registered_device_map) { |
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 5d72bda54389..f9f6645b2e61 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -296,8 +296,10 @@ static void free_tx_desc(struct adapter *adapter, struct sge_txq *q, | |||
296 | if (d->skb) { /* an SGL is present */ | 296 | if (d->skb) { /* an SGL is present */ |
297 | if (need_unmap) | 297 | if (need_unmap) |
298 | unmap_skb(d->skb, q, cidx, pdev); | 298 | unmap_skb(d->skb, q, cidx, pdev); |
299 | if (d->eop) | 299 | if (d->eop) { |
300 | kfree_skb(d->skb); | 300 | kfree_skb(d->skb); |
301 | d->skb = NULL; | ||
302 | } | ||
301 | } | 303 | } |
302 | ++d; | 304 | ++d; |
303 | if (++cidx == q->size) { | 305 | if (++cidx == q->size) { |