diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index a7f82fbdaf87..705f66ebd15f 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -1457,7 +1457,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev) | |||
1457 | list_for_each_entry(ns, &dev->namespaces, list) | 1457 | list_for_each_entry(ns, &dev->namespaces, list) |
1458 | add_disk(ns->disk); | 1458 | add_disk(ns->disk); |
1459 | 1459 | ||
1460 | dma_free_coherent(&dev->pci_dev->dev, 4096, id, dma_addr); | 1460 | dma_free_coherent(&dev->pci_dev->dev, 8192, id, dma_addr); |
1461 | return 0; | 1461 | return 0; |
1462 | 1462 | ||
1463 | out_free: | 1463 | out_free: |
@@ -1466,7 +1466,7 @@ static int __devinit nvme_dev_add(struct nvme_dev *dev) | |||
1466 | nvme_ns_free(ns); | 1466 | nvme_ns_free(ns); |
1467 | } | 1467 | } |
1468 | 1468 | ||
1469 | dma_free_coherent(&dev->pci_dev->dev, 4096, id, dma_addr); | 1469 | dma_free_coherent(&dev->pci_dev->dev, 8192, mem, dma_addr); |
1470 | return res; | 1470 | return res; |
1471 | } | 1471 | } |
1472 | 1472 | ||