diff options
Diffstat (limited to 'drivers/scsi/pcmcia/aha152x_stub.c')
-rw-r--r-- | drivers/scsi/pcmcia/aha152x_stub.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/pcmcia/aha152x_stub.c b/drivers/scsi/pcmcia/aha152x_stub.c index 370802d24acd..2dd0dc9a9aed 100644 --- a/drivers/scsi/pcmcia/aha152x_stub.c +++ b/drivers/scsi/pcmcia/aha152x_stub.c | |||
@@ -106,9 +106,8 @@ static int aha152x_probe(struct pcmcia_device *link) | |||
106 | DEBUG(0, "aha152x_attach()\n"); | 106 | DEBUG(0, "aha152x_attach()\n"); |
107 | 107 | ||
108 | /* Create new SCSI device */ | 108 | /* Create new SCSI device */ |
109 | info = kmalloc(sizeof(*info), GFP_KERNEL); | 109 | info = kzalloc(sizeof(*info), GFP_KERNEL); |
110 | if (!info) return -ENOMEM; | 110 | if (!info) return -ENOMEM; |
111 | memset(info, 0, sizeof(*info)); | ||
112 | info->p_dev = link; | 111 | info->p_dev = link; |
113 | link->priv = info; | 112 | link->priv = info; |
114 | 113 | ||