diff options
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index e4e5f1e8d816..55c662267868 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c | |||
@@ -248,11 +248,10 @@ static struct pcie_device* alloc_pcie_device(struct pci_dev *parent, | |||
248 | { | 248 | { |
249 | struct pcie_device *device; | 249 | struct pcie_device *device; |
250 | 250 | ||
251 | device = kmalloc(sizeof(struct pcie_device), GFP_KERNEL); | 251 | device = kzalloc(sizeof(struct pcie_device), GFP_KERNEL); |
252 | if (!device) | 252 | if (!device) |
253 | return NULL; | 253 | return NULL; |
254 | 254 | ||
255 | memset(device, 0, sizeof(struct pcie_device)); | ||
256 | pcie_device_init(parent, device, port_type, service_type, irq,irq_mode); | 255 | pcie_device_init(parent, device, port_type, service_type, irq,irq_mode); |
257 | printk(KERN_DEBUG "Allocate Port Service[%s]\n", device->device.bus_id); | 256 | printk(KERN_DEBUG "Allocate Port Service[%s]\n", device->device.bus_id); |
258 | return device; | 257 | return device; |