X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fatm%2Fsolos-pci.c;h=7652e8dc188f93036e03a23a99ac7aee3b543811;hb=68ffeca4f40dcdfc04e7134b4667e268af6c0683;hp=943cf0d6abaf8b959e2a879ca901fedaea693b1e;hpb=75d6bc5f7ab41a166deb6e9ebc8434706799fb00;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 943cf0d6abaf..7652e8dc188f 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; }