aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pd6729.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/pd6729.c')
-rw-r--r--drivers/pcmcia/pd6729.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c
index e7a6d9ac5ed8..f2789afb22b2 100644
--- a/drivers/pcmcia/pd6729.c
+++ b/drivers/pcmcia/pd6729.c
@@ -634,13 +634,11 @@ static int __devinit pd6729_pci_probe(struct pci_dev *dev,
634 char configbyte; 634 char configbyte;
635 struct pd6729_socket *socket; 635 struct pd6729_socket *socket;
636 636
637 socket = kmalloc(sizeof(struct pd6729_socket) * MAX_SOCKETS, 637 socket = kzalloc(sizeof(struct pd6729_socket) * MAX_SOCKETS,
638 GFP_KERNEL); 638 GFP_KERNEL);
639 if (!socket) 639 if (!socket)
640 return -ENOMEM; 640 return -ENOMEM;
641 641
642 memset(socket, 0, sizeof(struct pd6729_socket) * MAX_SOCKETS);
643
644 if ((ret = pci_enable_device(dev))) 642 if ((ret = pci_enable_device(dev)))
645 goto err_out_free_mem; 643 goto err_out_free_mem;
646 644