diff options
author | Joe Perches <joe@perches.com> | 2010-11-04 23:07:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 05:16:44 -0500 |
commit | 101b25b55ec48354bc40b9102b4f7922c9ad9eae (patch) | |
tree | 9a409a45c0c7ff943cccf02c9f494119c97e2153 /drivers/media/dvb/ngene | |
parent | 42e142f6b72493b5daec9950c4c83d20ccf56a0d (diff) |
[media] drivers/media: Use vzalloc
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/ngene')
-rw-r--r-- | drivers/media/dvb/ngene/ngene-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c index 3a7ef71087be..c7809f7da02e 100644 --- a/drivers/media/dvb/ngene/ngene-core.c +++ b/drivers/media/dvb/ngene/ngene-core.c | |||
@@ -1536,12 +1536,11 @@ int __devinit ngene_probe(struct pci_dev *pci_dev, | |||
1536 | if (pci_enable_device(pci_dev) < 0) | 1536 | if (pci_enable_device(pci_dev) < 0) |
1537 | return -ENODEV; | 1537 | return -ENODEV; |
1538 | 1538 | ||
1539 | dev = vmalloc(sizeof(struct ngene)); | 1539 | dev = vzalloc(sizeof(struct ngene)); |
1540 | if (dev == NULL) { | 1540 | if (dev == NULL) { |
1541 | stat = -ENOMEM; | 1541 | stat = -ENOMEM; |
1542 | goto fail0; | 1542 | goto fail0; |
1543 | } | 1543 | } |
1544 | memset(dev, 0, sizeof(struct ngene)); | ||
1545 | 1544 | ||
1546 | dev->pci_dev = pci_dev; | 1545 | dev->pci_dev = pci_dev; |
1547 | dev->card_info = (struct ngene_info *)id->driver_data; | 1546 | dev->card_info = (struct ngene_info *)id->driver_data; |