|
@@ -4033,8 +4033,10 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
(void)pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64));
|
|
|
mgp->cmd = dma_alloc_coherent(&pdev->dev, sizeof(*mgp->cmd),
|
|
|
&mgp->cmd_bus, GFP_KERNEL);
|
|
|
- if (mgp->cmd == NULL)
|
|
|
+ if (!mgp->cmd) {
|
|
|
+ status = -ENOMEM;
|
|
|
goto abort_with_enabled;
|
|
|
+ }
|
|
|
|
|
|
mgp->board_span = pci_resource_len(pdev, 0);
|
|
|
mgp->iomem_base = pci_resource_start(pdev, 0);
|