diff options
Diffstat (limited to 'drivers/scsi/pcmcia/qlogic_stub.c')
-rw-r--r-- | drivers/scsi/pcmcia/qlogic_stub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/pcmcia/qlogic_stub.c b/drivers/scsi/pcmcia/qlogic_stub.c index 697cfb76c3a4..67c5a58d17df 100644 --- a/drivers/scsi/pcmcia/qlogic_stub.c +++ b/drivers/scsi/pcmcia/qlogic_stub.c | |||
@@ -162,10 +162,9 @@ static int qlogic_probe(struct pcmcia_device *link) | |||
162 | DEBUG(0, "qlogic_attach()\n"); | 162 | DEBUG(0, "qlogic_attach()\n"); |
163 | 163 | ||
164 | /* Create new SCSI device */ | 164 | /* Create new SCSI device */ |
165 | info = kmalloc(sizeof(*info), GFP_KERNEL); | 165 | info = kzalloc(sizeof(*info), GFP_KERNEL); |
166 | if (!info) | 166 | if (!info) |
167 | return -ENOMEM; | 167 | return -ENOMEM; |
168 | memset(info, 0, sizeof(*info)); | ||
169 | info->p_dev = link; | 168 | info->p_dev = link; |
170 | link->priv = info; | 169 | link->priv = info; |
171 | link->io.NumPorts1 = 16; | 170 | link->io.NumPorts1 = 16; |