|
@@ -1278,6 +1278,7 @@ static int fpga_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
|
|
card->dma_bounce = kmalloc(card->nr_ports * BUF_SIZE, GFP_KERNEL);
|
|
card->dma_bounce = kmalloc(card->nr_ports * BUF_SIZE, GFP_KERNEL);
|
|
|
if (!card->dma_bounce) {
|
|
if (!card->dma_bounce) {
|
|
|
dev_warn(&card->dev->dev, "Failed to allocate DMA bounce buffers\n");
|
|
dev_warn(&card->dev->dev, "Failed to allocate DMA bounce buffers\n");
|
|
|
|
|
+ err = -ENOMEM;
|
|
|
/* Fallback to MMIO doesn't work */
|
|
/* Fallback to MMIO doesn't work */
|
|
|
goto out_unmap_both;
|
|
goto out_unmap_both;
|
|
|
}
|
|
}
|