diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ixgb/ixgb_main.c')
-rw-r--r-- | drivers/net/ethernet/intel/ixgb/ixgb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/ixgb/ixgb_main.c b/drivers/net/ethernet/intel/ixgb/ixgb_main.c index fce3e92f9d11..9f6b236828e6 100644 --- a/drivers/net/ethernet/intel/ixgb/ixgb_main.c +++ b/drivers/net/ethernet/intel/ixgb/ixgb_main.c | |||
@@ -718,8 +718,8 @@ ixgb_setup_tx_resources(struct ixgb_adapter *adapter) | |||
718 | txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); | 718 | txdr->size = txdr->count * sizeof(struct ixgb_tx_desc); |
719 | txdr->size = ALIGN(txdr->size, 4096); | 719 | txdr->size = ALIGN(txdr->size, 4096); |
720 | 720 | ||
721 | txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, | 721 | txdr->desc = dma_zalloc_coherent(&pdev->dev, txdr->size, &txdr->dma, |
722 | GFP_KERNEL | __GFP_ZERO); | 722 | GFP_KERNEL); |
723 | if (!txdr->desc) { | 723 | if (!txdr->desc) { |
724 | vfree(txdr->buffer_info); | 724 | vfree(txdr->buffer_info); |
725 | return -ENOMEM; | 725 | return -ENOMEM; |