diff options
Diffstat (limited to 'drivers/scsi/mvme16x_scsi.c')
-rw-r--r-- | drivers/scsi/mvme16x_scsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c index 1bdddad48571..b264b499d982 100644 --- a/drivers/scsi/mvme16x_scsi.c +++ b/drivers/scsi/mvme16x_scsi.c | |||
@@ -48,13 +48,12 @@ mvme16x_probe(struct device *dev) | |||
48 | goto out; | 48 | goto out; |
49 | } | 49 | } |
50 | 50 | ||
51 | hostdata = kmalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); | 51 | hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL); |
52 | if (hostdata == NULL) { | 52 | if (hostdata == NULL) { |
53 | printk(KERN_ERR "mvme16x-scsi: " | 53 | printk(KERN_ERR "mvme16x-scsi: " |
54 | "Failed to allocate host data\n"); | 54 | "Failed to allocate host data\n"); |
55 | goto out; | 55 | goto out; |
56 | } | 56 | } |
57 | memset(hostdata, 0, sizeof(struct NCR_700_Host_Parameters)); | ||
58 | 57 | ||
59 | /* Fill in the required pieces of hostdata */ | 58 | /* Fill in the required pieces of hostdata */ |
60 | hostdata->base = (void __iomem *)0xfff47000UL; | 59 | hostdata->base = (void __iomem *)0xfff47000UL; |