diff options
Diffstat (limited to 'drivers/scsi/lasi700.c')
-rw-r--r-- | drivers/scsi/lasi700.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lasi700.c b/drivers/scsi/lasi700.c index 5c32a69e41ba..3126824da36d 100644 --- a/drivers/scsi/lasi700.c +++ b/drivers/scsi/lasi700.c | |||
@@ -101,13 +101,12 @@ lasi700_probe(struct parisc_device *dev) | |||
101 | struct NCR_700_Host_Parameters *hostdata; | 101 | struct NCR_700_Host_Parameters *hostdata; |
102 | struct Scsi_Host *host; | 102 | struct Scsi_Host *host; |
103 | 103 | ||
104 | hostdata = kmalloc(sizeof(*hostdata), GFP_KERNEL); | 104 | hostdata = kzalloc(sizeof(*hostdata), GFP_KERNEL); |
105 | if (!hostdata) { | 105 | if (!hostdata) { |
106 | printk(KERN_ERR "%s: Failed to allocate host data\n", | 106 | printk(KERN_ERR "%s: Failed to allocate host data\n", |
107 | dev->dev.bus_id); | 107 | dev->dev.bus_id); |
108 | return -ENOMEM; | 108 | return -ENOMEM; |
109 | } | 109 | } |
110 | memset(hostdata, 0, sizeof(struct NCR_700_Host_Parameters)); | ||
111 | 110 | ||
112 | hostdata->dev = &dev->dev; | 111 | hostdata->dev = &dev->dev; |
113 | dma_set_mask(&dev->dev, DMA_32BIT_MASK); | 112 | dma_set_mask(&dev->dev, DMA_32BIT_MASK); |