提交 b8bc0421 编写于 作者: D Dan Carpenter 提交者: David S. Miller

ixgbe: potential null dereference

The e_dev_err() macro dereferences "adapter" which is NULL here.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Acked-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 94fe8c68
...@@ -6552,8 +6552,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, ...@@ -6552,8 +6552,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
err = dma_set_coherent_mask(&pdev->dev, err = dma_set_coherent_mask(&pdev->dev,
DMA_BIT_MASK(32)); DMA_BIT_MASK(32));
if (err) { if (err) {
e_dev_err("No usable DMA configuration, " dev_err(&pdev->dev,
"aborting\n"); "No usable DMA configuration, aborting\n");
goto err_dma; goto err_dma;
} }
} }
...@@ -6563,7 +6563,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, ...@@ -6563,7 +6563,8 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev,
err = pci_request_selected_regions(pdev, pci_select_bars(pdev, err = pci_request_selected_regions(pdev, pci_select_bars(pdev,
IORESOURCE_MEM), ixgbe_driver_name); IORESOURCE_MEM), ixgbe_driver_name);
if (err) { if (err) {
e_dev_err("pci_request_selected_regions failed 0x%x\n", err); dev_err(&pdev->dev,
"pci_request_selected_regions failed 0x%x\n", err);
goto err_pci_reg; goto err_pci_reg;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册