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 f0dc9fd commit 29b7cd2Copy full SHA for 29b7cd2
drivers/dma/ioat/init.c
@@ -1347,6 +1347,7 @@ static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1347
void __iomem * const *iomap;
1348
struct device *dev = &pdev->dev;
1349
struct ioatdma_device *device;
1350
+ unsigned int i;
1351
u8 version;
1352
int err;
1353
@@ -1384,6 +1385,9 @@ static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1384
1385
1386
err = ioat3_dma_probe(device, ioat_dca_enabled);
1387
if (err) {
1388
+ for (i = 0; i < IOAT_MAX_CHANS; i++)
1389
+ kfree(device->idx[i]);
1390
+ kfree(device);
1391
dev_err(dev, "Intel(R) I/OAT DMA Engine init failed\n");
1392
return -ENODEV;
1393
}
0 commit comments