aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-gemtek-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/radio/radio-gemtek-pci.c')
-rw-r--r--drivers/media/radio/radio-gemtek-pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c
index 69ac8aa73eba..8e499b8f64c7 100644
--- a/drivers/media/radio/radio-gemtek-pci.c
+++ b/drivers/media/radio/radio-gemtek-pci.c
@@ -318,11 +318,10 @@ static int __devinit gemtek_pci_probe( struct pci_dev *pci_dev, const struct pci
318 struct gemtek_pci_card *card; 318 struct gemtek_pci_card *card;
319 struct video_device *devradio; 319 struct video_device *devradio;
320 320
321 if ( (card = kmalloc( sizeof( struct gemtek_pci_card ), GFP_KERNEL )) == NULL ) { 321 if ( (card = kzalloc( sizeof( struct gemtek_pci_card ), GFP_KERNEL )) == NULL ) {
322 printk( KERN_ERR "gemtek_pci: out of memory\n" ); 322 printk( KERN_ERR "gemtek_pci: out of memory\n" );
323 return -ENOMEM; 323 return -ENOMEM;
324 } 324 }
325 memset( card, 0, sizeof( struct gemtek_pci_card ) );
326 325
327 if ( pci_enable_device( pci_dev ) ) 326 if ( pci_enable_device( pci_dev ) )
328 goto err_pci; 327 goto err_pci;