We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b114dda commit 2d50607Copy full SHA for 2d50607
drivers/message/fusion/mptbase.c
@@ -3512,7 +3512,8 @@ mpt_alloc_fw_memory(MPT_ADAPTER *ioc, int size)
3512
rc = 0;
3513
goto out;
3514
}
3515
- ioc->cached_fw = pci_alloc_consistent(ioc->pcidev, size, &ioc->cached_fw_dma);
+ ioc->cached_fw = dma_alloc_coherent(&ioc->pcidev->dev, size,
3516
+ &ioc->cached_fw_dma, GFP_ATOMIC);
3517
if (!ioc->cached_fw) {
3518
printk(MYIOC_s_ERR_FMT "Unable to allocate memory for the cached firmware image!\n",
3519
ioc->name);
0 commit comments