Re: [PATCH 2/5] solos-pci: fix error return code
From: chas williams - CONTRACTOR <hidden>
Date: 2014-08-07 13:15:13
Also in:
kernel-janitors, lkml
From: chas williams - CONTRACTOR <hidden>
Date: 2014-08-07 13:15:13
Also in:
kernel-janitors, lkml
On Thu, 7 Aug 2014 14:49:07 +0200 Julia Lawall [off-list ref] wrote: ...
drivers/atm/solos-pci.c | 1 + 1 file changed, 1 insertion(+)diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 943cf0d..7652e8d 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c@@ -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); if (!card->dma_bounce) { dev_warn(&card->dev->dev, "Failed to allocate DMA bounce buffers\n"); + err = -ENOMEM; /* Fallback to MMIO doesn't work */ goto out_unmap_both; }
Acked-by: Chas Williams <redacted>