aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR_D700.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/NCR_D700.c')
-rw-r--r--drivers/scsi/NCR_D700.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c
index f12864abed2f..3a8089705feb 100644
--- a/drivers/scsi/NCR_D700.c
+++ b/drivers/scsi/NCR_D700.c
@@ -181,13 +181,12 @@ NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq,
181 struct Scsi_Host *host; 181 struct Scsi_Host *host;
182 int ret; 182 int ret;
183 183
184 hostdata = kmalloc(sizeof(*hostdata), GFP_KERNEL); 184 hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL);
185 if (!hostdata) { 185 if (!hostdata) {
186 printk(KERN_ERR "NCR D700: SIOP%d: Failed to allocate host" 186 printk(KERN_ERR "NCR D700: SIOP%d: Failed to allocate host"
187 "data, detatching\n", siop); 187 "data, detatching\n", siop);
188 return -ENOMEM; 188 return -ENOMEM;
189 } 189 }
190 memset(hostdata, 0, sizeof(*hostdata));
191 190
192 if (!request_region(region, 64, "NCR_D700")) { 191 if (!request_region(region, 64, "NCR_D700")) {
193 printk(KERN_ERR "NCR D700: Failed to reserve IO region 0x%x\n", 192 printk(KERN_ERR "NCR D700: Failed to reserve IO region 0x%x\n",