aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-08-30 13:32:36 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-09-17 16:35:14 -0500
commitc6635792737b881021ead417b281067d56ed3380 (patch)
tree5dbd6dfe1ca0050a7523a3374ab44a07d0ca2b8e /drivers/pci/probe.c
parentPCI: Remove unused NFP32xx IDs (diff)
downloadlinux-dev-c6635792737b881021ead417b281067d56ed3380.tar.xz
linux-dev-c6635792737b881021ead417b281067d56ed3380.zip
PCI: Allocate dma_alias_mask with bitmap_zalloc()
Switch to bitmap_zalloc() to show clearly what we are allocating. Besides that it returns pointer of bitmap type ("unsigned long *") instead of the opaque "void *". Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 201f9e5ff55c..7c422ccbf9b4 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -2143,7 +2143,7 @@ static void pci_release_dev(struct device *dev)
pcibios_release_device(pci_dev);
pci_bus_put(pci_dev->bus);
kfree(pci_dev->driver_override);
- kfree(pci_dev->dma_alias_mask);
+ bitmap_free(pci_dev->dma_alias_mask);
kfree(pci_dev);
}