diff options
Diffstat (limited to 'drivers/scsi/pcmcia/sym53c500_cs.c')
-rw-r--r-- | drivers/scsi/pcmcia/sym53c500_cs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 2695b7187b2f..961839ecfe86 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c | |||
@@ -875,10 +875,9 @@ SYM53C500_probe(struct pcmcia_device *link) | |||
875 | DEBUG(0, "SYM53C500_attach()\n"); | 875 | DEBUG(0, "SYM53C500_attach()\n"); |
876 | 876 | ||
877 | /* Create new SCSI device */ | 877 | /* Create new SCSI device */ |
878 | info = kmalloc(sizeof(*info), GFP_KERNEL); | 878 | info = kzalloc(sizeof(*info), GFP_KERNEL); |
879 | if (!info) | 879 | if (!info) |
880 | return -ENOMEM; | 880 | return -ENOMEM; |
881 | memset(info, 0, sizeof(*info)); | ||
882 | info->p_dev = link; | 881 | info->p_dev = link; |
883 | link->priv = info; | 882 | link->priv = info; |
884 | link->io.NumPorts1 = 16; | 883 | link->io.NumPorts1 = 16; |