[PATCH] PCI: kzalloc() conversion in drivers/pci
this patch converts drivers/pci to kzalloc usage. Compile tested with allyes config. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7c8f25da12
commit
f5afe8064f
@@ -248,11 +248,10 @@ static struct pcie_device* alloc_pcie_device(struct pci_dev *parent,
|
||||
{
|
||||
struct pcie_device *device;
|
||||
|
||||
device = kmalloc(sizeof(struct pcie_device), GFP_KERNEL);
|
||||
device = kzalloc(sizeof(struct pcie_device), GFP_KERNEL);
|
||||
if (!device)
|
||||
return NULL;
|
||||
|
||||
memset(device, 0, sizeof(struct pcie_device));
|
||||
pcie_device_init(parent, device, port_type, service_type, irq,irq_mode);
|
||||
printk(KERN_DEBUG "Allocate Port Service[%s]\n", device->device.bus_id);
|
||||
return device;
|
||||
|
Reference in New Issue
Block a user